fix(ci): use pnpm 11 allowBuilds instead of onlyBuiltDependencies
Build & Push Docker Image / build (push) Successful in 2m40s
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:
+8
-8
@@ -75,11 +75,14 @@ catalog:
|
|||||||
|
|
||||||
autoInstallPeers: false
|
autoInstallPeers: false
|
||||||
|
|
||||||
onlyBuiltDependencies:
|
# pnpm 11: allowBuilds (map) replaces onlyBuiltDependencies (list).
|
||||||
- '@swc/core'
|
# Build scripts are blocked by default (supply-chain defense). Only allow
|
||||||
- esbuild
|
# scripts for packages that genuinely need a postinstall to work.
|
||||||
- msw
|
allowBuilds:
|
||||||
- unrs-resolver
|
'@swc/core': true
|
||||||
|
esbuild: true
|
||||||
|
msw: true
|
||||||
|
unrs-resolver: true
|
||||||
|
|
||||||
overrides:
|
overrides:
|
||||||
# replit uses linux-x64 only, we can exclude all other platforms
|
# replit uses linux-x64 only, we can exclude all other platforms
|
||||||
@@ -174,6 +177,3 @@ overrides:
|
|||||||
linkify-it: ">=5.0.2"
|
linkify-it: ">=5.0.2"
|
||||||
brace-expansion: ">=5.0.8"
|
brace-expansion: ">=5.0.8"
|
||||||
fast-uri: ">=3.1.4"
|
fast-uri: ">=3.1.4"
|
||||||
|
|
||||||
allowBuilds:
|
|
||||||
esbuild: set this to true or false
|
|
||||||
|
|||||||
Reference in New Issue
Block a user