Skip to content

Commit

Permalink
Fixes edited .jsx files not triggering a TGUI recompile (#5562)
Browse files Browse the repository at this point in the history
# 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: tgstation/tgstation#80630

# Explain why it's good for the game

Editing a TGUI file should trigger a rebuild.

# Testing Photographs and Procedure
<details>
<summary>Screenshots & Videos</summary>

Put screenshots and videos here with an empty line between the
screenshots and the `<details>` tags.

</details>


# Changelog
Nothing player-facing.
  • Loading branch information
SabreML authored Jan 28, 2024
1 parent 610de87 commit ef25cff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/build/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit ef25cff

Please sign in to comment.