fix(ci): use pnpm 11 allowBuilds instead of onlyBuiltDependencies
Build & Push Docker Image / build (push) Successful in 2m40s

pnpm 11 treats ignored build scripts as a hard error during fresh
installs (CI/Docker), while the old onlyBuiltDependencies list is
deprecated. The stray 'allowBuilds: esbuild: set this to true or false'
placeholder was invalid YAML semantics and blocked the esbuild
postinstall, failing 'pnpm install --frozen-lockfile' in the Docker
builder stage (ERR_PNPM_IGNORED_BUILDS).
This commit is contained in:
opencode
2026-08-03 13:06:43 +02:00
parent 2f66fff993
commit 4b1274e34a
+8 -8
View File
@@ -75,11 +75,14 @@ catalog:
autoInstallPeers: false
onlyBuiltDependencies:
- '@swc/core'
- esbuild
- msw
- unrs-resolver
# pnpm 11: allowBuilds (map) replaces onlyBuiltDependencies (list).
# Build scripts are blocked by default (supply-chain defense). Only allow
# scripts for packages that genuinely need a postinstall to work.
allowBuilds:
'@swc/core': true
esbuild: true
msw: true
unrs-resolver: true
overrides:
# replit uses linux-x64 only, we can exclude all other platforms
@@ -174,6 +177,3 @@ overrides:
linkify-it: ">=5.0.2"
brace-expansion: ">=5.0.8"
fast-uri: ">=3.1.4"
allowBuilds:
esbuild: set this to true or false