dx: harden build code

Massimo Melina committed Jun 14, 2026 at 16:02 UTC 3a612555f2a59a5b3a7bcecd3d702efe76fd576b
3 files changed +5 -5
admin/src/index.scss
+2 -2
@@ -1,4 +1,4 @@
1 -@import '../../shared/main';
1 +@use '../../shared/main';
2
3 :root {
4 height: 100dvh;
@@ -105,4 +105,4 @@ h2.MuiDialogTitle-root { /* less padding */
105 // adjust prism black theme
106 .token.operator { background: unset !important; }
107
108 -.fflag { width: 26px; height: 17px; vertical-align: bottom; border: none; }
\ No newline at end of file
108 +.fflag { width: 26px; height: 17px; vertical-align: bottom; border: none; }
frontend/src/index.scss
+1 -1
@@ -1,4 +1,4 @@
1 -@import '../../shared/main';
1 +@use '../../shared/main';
2
3 :root {
4 height: 100dvh; // workarounded chrome109-mobile's problem with sticky-bottom bar moving when scrolling
package.json
+2 -2
@@ -26,8 +26,8 @@
26 "test-ui": "npm run port-is-free -- 8081 && rm -rf tests/work tests/work2 && npx playwright test frontend && npx playwright test serial && npx playwright test admin-vfs",
27 "test-with-ui": "sh -c 'npm run port-is-free -- 3005 && npm run start-frontend & npm run port-is-free -- 3006 && npm run start-admin & cross-env TEST_WITH_UI=1 npx playwright test --ui \"$@\"' --",
28 "pub": "cd dist && npm publish",
29 - "dist": "STASHED=; if ! git diff-index --quiet HEAD --; then git stash push -m 'dist' && STASHED=1; fi; npm audit fix && CI=1 FORCE_COLOR=1 npm run dist-uncommitted || (EXIT_CODE=$?; [ -n \"$STASHED\" ] && git stash pop; exit $EXIT_CODE); [ -n \"$STASHED\" ] && git stash pop",
30 - "dist-uncommitted": "npm audit --omit=dev --audit-level=moderate && rm -rf dist && npm run build-server && npm run test-with-server && (npm run build-frontend & npm run build-admin) && npm run test-ui && npm run dist-bin",
29 + "dist": "STASHED=; STASH_BEFORE=$(git rev-parse -q --verify refs/stash || true); git update-index -q --refresh; if ! git diff-index --quiet HEAD --; then git stash push -m 'dist' || exit $?; STASH_AFTER=$(git rev-parse -q --verify refs/stash || true); [ \"$STASH_AFTER\" != \"$STASH_BEFORE\" ] && STASHED=1; fi; npm audit --omit=dev --audit-level=moderate && CI=1 FORCE_COLOR=1 npm run dist-uncommitted; EXIT_CODE=$?; if [ -n \"$STASHED\" ]; then git stash pop || exit $?; fi; exit $EXIT_CODE",
30 + "dist-uncommitted": "npm audit --omit=dev --audit-level=moderate && rm -rf dist && npm run build-server && npm run test-with-server && (npm run build-frontend & fe=$!; npm run build-admin & ad=$!; wait $fe && wait $ad) && npm run test-ui && npm run dist-bin",
31 "dist-bin": "npm run dist-modules && npm run dist-bin-win && npm run dist-bin-linux && npm run dist-bin-linux-arm && npm run dist-bin-mac && npm run dist-bin-mac-arm",
32 "dist-modules": "cp package.json central.json README.md dist && cd dist && npm pkg delete devDependencies workspaces scripts.postinstall && rm -rf node_modules && npm install --omit=dev && npm shrinkwrap && cd .. && node scripts/prune_modules.js",
33 "dist-bin-win": "cd dist && pkg . --public -C gzip -t node24-win-x64 && npx resedit-cli --in hfs.exe --icon 1,../hfs.ico --out hfs.exe && zip hfs-windows-x64-$(jq -r .version ../package.json).zip hfs.exe -r plugins && cd ..",