fix(web): put the build-script allowlist where pnpm 10 actually reads it
deploy / build (push) Waiting to run
deploy / build-web (push) Failing after 1m8s
deploy / deploy (push) Has been cancelled
deploy / deploy-web (push) Has been cancelled

The previous attempt set pnpm.onlyBuiltDependencies in package.json.
pnpm 10 does not read it from there -- `pnpm config get
onlyBuiltDependencies` returns undefined -- so the runner failed exactly
as before.

It looked fixed locally because the pnpm store had already built both
packages, so a reinstall printed no warning whether or not the allowlist
was being read. "No warning" was not evidence; `pnpm config get`
returning the values is, and it does now.

Moves the allowlist to pnpm-workspace.yaml, which is where pnpm 10 takes
its settings, and drops the inert package.json field rather than leave
two places appearing to configure the same thing.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XZG2i4AmfSqE97EJGBVb64
This commit is contained in:
2026-08-31 13:18:08 +03:00
co-authored by Claude Opus 5
parent 32621f98ad
commit 05c3e56dba
2 changed files with 9 additions and 6 deletions
-6
View File
@@ -32,11 +32,5 @@
"typescript": "^5.9.3",
"typescript-eslint": "^8.46.2",
"vite": "^7.2.2"
},
"pnpm": {
"onlyBuiltDependencies": [
"@swc/core",
"esbuild"
]
}
}
+9
View File
@@ -0,0 +1,9 @@
# pnpm 10 reads settings from here, not from package.json's `pnpm` field.
#
# An explicit allowlist of dependencies permitted to run install scripts. Both
# fetch a platform-native binary at install time and do not work without it;
# every other package in the tree is denied, which is the point — an install
# script is arbitrary code from a transitive dependency.
onlyBuiltDependencies:
- '@swc/core'
- esbuild