@samitouri / QOSami-HFS / commits / 9222167e

dx: don't stash-pop if we didn't stash-push

Massimo Melina committed Jan 2, 2026 at 11:47 UTC 9222167ea9fb477237c9576e53de0cb137126d6c
1 file changed +1 -1
package.json
+1 -1
@@ -24,7 +24,7 @@
24 "test-ui": "npx playwright test frontend && npx playwright test serial",
25 "test-with-ui": "npx playwright test --ui",
26 "pub": "cd dist && npm publish",
27 - "dist": "(git diff-index --quiet HEAD -- || git stash push -m 'dist') && (CI=1 FORCE_COLOR=1 npm run dist-uncommitted || (EXIT_CODE=$? && git stash pop || true && exit $EXIT_CODE)); git stash pop || true",
27 + "dist": "STASHED=; if ! git diff-index --quiet HEAD --; then git stash push -m 'dist' && STASHED=1; fi; CI=1 FORCE_COLOR=1 npm run dist-uncommitted || (EXIT_CODE=$?; [ -n \"$STASHED\" ] && git stash pop; exit $EXIT_CODE); [ -n \"$STASHED\" ] && git stash pop",
28 "dist-uncommitted": "npm run build-all && npm run test-ui && npm run dist-bin",
29 "dist-bin": "npm run dist-modules && npm run dist-bin-win && npm run dist-bin-linux && npm run dist-bin-mac && npm run dist-bin-mac-arm",
30 "dist-modules": "cp package*.json central.json dist && cd dist && npm ci --omit=dev && cd .. && node prune_modules",