From ef25cff95b6bd348923eb87de3707d28c6f5f877 Mon Sep 17 00:00:00 2001 From: SabreML <57483089+SabreML@users.noreply.github.com> Date: Sun, 28 Jan 2024 10:11:07 +0000 Subject: [PATCH] Fixes edited `.jsx` files not triggering a TGUI recompile (#5562) # About the pull request Fixes `.jsx` files not triggering a TGUI recompile in build.bat when they've been edited. Currently you need to manually run `yarn tgui:build` (or equivalent) to make any changes appear in-game. I double checked TG's version of this just to make sure I didn't miss something obvious, and it looks like they've only recently fixed this themselves: https://github.com/tgstation/tgstation/pull/80630 # Explain why it's good for the game Editing a TGUI file should trigger a rebuild. # Testing Photographs and Procedure
Screenshots & Videos Put screenshots and videos here with an empty line between the screenshots and the `
` tags.
# Changelog Nothing player-facing. --- tools/build/build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/build/build.js b/tools/build/build.js index c145ed391eb2..ecde79ff4f2e 100644 --- a/tools/build/build.js +++ b/tools/build/build.js @@ -176,7 +176,7 @@ export const TguiTarget = new Juke.Target({ "tgui/.yarn/install-target", "tgui/webpack.config.js", "tgui/**/package.json", - "tgui/packages/**/*.+(js|cjs|ts|tsx|scss)", + "tgui/packages/**/*.+(js|jsx|cjs|ts|tsx|scss)", ], outputs: [ "tgui/public/tgui.bundle.css",