fix(frontend): allow build scripts for pnpm to unblock Docker build

pnpm 10+ refuses to run dependency build scripts by default and exits
with ERR_PNPM_IGNORED_BUILDS, causing `pnpm install` to fail in the
frontend Docker image. Whitelist the packages that legitimately need
their install scripts (esbuild native binary, @vue-office/pptx,
vue-demi) via `pnpm.onlyBuiltDependencies`.
This commit is contained in:
wizardchen
2026-05-08 16:17:14 +08:00
committed by lyingbug
parent a4c3c39556
commit 483576a9b6
+7
View File
@@ -60,5 +60,12 @@
"lightningcss": "none",
"esbuild": "^0.25.0",
"serialize-javascript": "^7.0.3"
},
"pnpm": {
"onlyBuiltDependencies": [
"@vue-office/pptx",
"esbuild",
"vue-demi"
]
}
}