Skip to content

Commit caf2899

Browse files
committed
fix(ci): generate tfstate stub before server build in integration script
app:test:integration called `npm run build -w @gsd/server` directly, bypassing the game-server-manager prebuild hook that runs embed-tfstate.mjs. Since generated/tfstate.ts is in .gitignore and only created by that hook, tsc -b failed with "Cannot find module '../generated/tfstate.js'". Prepend the embed script so the stub (null in CI) is written before tsc runs. https://claude.ai/code/session_01UAVwJvuBtUaDYFXtJRheww
1 parent 27022d1 commit caf2899

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"app:lint": "npm run lint -w game-server-manager",
2121
"app:lint:fix": "npm run lint:fix -w game-server-manager",
2222
"app:test:e2e": "npm run test:e2e -w @gsd/web",
23-
"app:test:integration": "npm run build -w @gsd/server && npm run test:integration -w @gsd/web",
23+
"app:test:integration": "node app/scripts/embed-tfstate.mjs && npm run build -w @gsd/server && npm run test:integration -w @gsd/web",
2424
"scripts:init-parent": "npm run init-parent -w @gsd/scripts"
2525
}
2626
}

0 commit comments

Comments
 (0)