Fix CI frontend build: pin pnpm, approve dependency build scripts
All checks were successful
Deploy to VPS / deploy (push) Successful in 2m41s

The Docker build's unpinned corepack resolved a newer pnpm that hard-
errors on unreviewed dependency build scripts (ERR_PNPM_IGNORED_BUILDS),
failing deploy task 80. Pin packageManager to the locally-verified
pnpm 10.33.1 and review the build scripts: @swc/core and esbuild are
approved (vite needs their native binaries), @scarf/scarf is ignored.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Carlos Escalante
2026-06-09 19:22:57 -06:00
parent 3e56f1ca66
commit d874cf540d
2 changed files with 9 additions and 0 deletions

View File

@@ -3,6 +3,7 @@
"version": "0.1.0", "version": "0.1.0",
"private": true, "private": true,
"type": "module", "type": "module",
"packageManager": "pnpm@10.33.1",
"scripts": { "scripts": {
"dev": "concurrently -k -n vite,ck -c cyan,magenta \"vite --host 0.0.0.0 --port 3000\" \"tsx watch server.ts\"", "dev": "concurrently -k -n vite,ck -c cyan,magenta \"vite --host 0.0.0.0 --port 3000\" \"tsx watch server.ts\"",
"build": "vite build", "build": "vite build",

View File

@@ -1,3 +1,11 @@
# Build-script review (pnpm 10 refuses to run unreviewed dependency scripts).
# vite needs the native binaries these two postinstalls provide:
onlyBuiltDependencies:
- "@swc/core"
- esbuild
# Deliberately not built:
ignoredBuiltDependencies: ignoredBuiltDependencies:
- "@scarf/scarf" # telemetry only
- sharp - sharp
- unrs-resolver - unrs-resolver