Skip to content

Commit 86fb164

Browse files
committed
Add native build script approvals to pnpm workspace configuration
1 parent 6491013 commit 86fb164

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

pnpm-workspace.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,24 @@
11
packages:
22
- "packages/*"
3+
4+
# Pre-approved native build scripts. pnpm >=10 blocks postinstall scripts of
5+
# transitive deps unless they're listed here or approved interactively. The
6+
# installer runs via `curl | bash` (no TTY), so the interactive prompt is
7+
# unreachable — without this, esbuild/sharp/workerd never compile their native
8+
# binaries and the subsequent `pnpm bundle-ui` / `pnpm build` fail.
9+
#
10+
# Two formats coexist intentionally: pnpm 9–10 reads `onlyBuiltDependencies`
11+
# (list); pnpm 11+ reads `allowBuilds` (map). Either pnpm version honors its
12+
# field and ignores the other.
13+
onlyBuiltDependencies:
14+
- esbuild
15+
- koffi
16+
- protobufjs
17+
- sharp
18+
- workerd
19+
allowBuilds:
20+
esbuild: true
21+
koffi: true
22+
protobufjs: true
23+
sharp: true
24+
workerd: true

0 commit comments

Comments
 (0)