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:
+1
-1
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user