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:
@@ -60,5 +60,12 @@
|
|||||||
"lightningcss": "none",
|
"lightningcss": "none",
|
||||||
"esbuild": "^0.25.0",
|
"esbuild": "^0.25.0",
|
||||||
"serialize-javascript": "^7.0.3"
|
"serialize-javascript": "^7.0.3"
|
||||||
|
},
|
||||||
|
"pnpm": {
|
||||||
|
"onlyBuiltDependencies": [
|
||||||
|
"@vue-office/pptx",
|
||||||
|
"esbuild",
|
||||||
|
"vue-demi"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user