Skip the pre-deploy build when only test files changed.

predeploy was a shell chain that always rebuilt, so a test-only edit paid for a
full Vite build. It is now scripts/predeploy.mjs: typecheck, tests and the render
check always run, and the build is skipped when a content hash of the bundle
inputs (src and public minus test files, plus the Vite/TS/package config) matches
the last successful build. The signature lives in node_modules/.cache, so it is
gitignored and never rsynced to the server.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
This commit is contained in:
2026-11-28 15:02:00 +00:00
parent 6e80699829
commit 4b17ca00db
3 changed files with 97 additions and 2 deletions
+1 -1
View File
@@ -14,7 +14,7 @@
"typecheck": "tsc --noEmit",
"test": "vitest run",
"check:render": "node scripts/render-check.mjs",
"predeploy": "npm run typecheck && npm test && npm run check:render && npm run build",
"predeploy": "node scripts/predeploy.mjs",
"build:lens-db": "node scripts/build-lens-db.mjs"
},
"dependencies": {