fix: harden cross-platform release builds

Skip direct POSIX entrypoint execution on Windows CI and prevent test-support modules from entering clean build or npm package output.
This commit is contained in:
Federico Jaramillo Martinez
2026-07-11 20:30:51 +02:00
parent bc6718a7e2
commit dfab743a71
4 changed files with 119 additions and 4 deletions
+3 -2
View File
@@ -12,6 +12,7 @@
},
"files": [
"dist",
"!dist/**/*.testSupport.*",
"install.sh",
"README.md",
"LICENSE",
@@ -29,7 +30,7 @@
"dev:server": "npm run dev:web",
"dev:client": "vite --host 0.0.0.0",
"dev:plugins": "node scripts/build-plugins.mjs --watch",
"build": "tsc -p tsconfig.build.json && npm run build:plugin-api && npm run build:plugins && vite build",
"build": "npm run clean && tsc -p tsconfig.build.json && npm run build:plugin-api && npm run build:plugins && vite build",
"build:plugin-api": "tsc -p tsconfig.plugin-api.json",
"build:plugins": "tsc -p tsconfig.plugins.json && node scripts/build-plugins.mjs",
"capture:screenshots": "node scripts/capture-screenshots.mjs",
@@ -40,7 +41,7 @@
"verify": "npm run typecheck && npm run lint && npm run knip && npm test",
"start": "tsx src/server/index.ts",
"start:sessiond": "tsx src/server/sessiond.ts",
"clean": "rm -rf dist",
"clean": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\"",
"prepack": "npm run build",
"pack:dry": "npm pack --dry-run",
"prepublishOnly": "npm run verify",