fix: clear tsbuildinfo cache in frontend-build to prevent stale builds

- Add rm -rf node_modules/.tmp before npm run build
- Without this, tsc -b reads stale .tsbuildinfo from Docker volume
  and skips recompiling changed files, causing old JS to be served
This commit is contained in:
Ivan087
2026-05-21 15:01:14 +08:00
parent e73b3147ed
commit a677e85dd0

View File

@ -98,6 +98,7 @@ services:
sh -c "
set -eux;
npm ci;
rm -rf node_modules/.tmp;
npm run build;
mkdir -p /build;
rm -rf /build/*;