Skip to content

Commit d0c3d36

Browse files
fix: add --ignore-scripts to pnpm11 install command
pnpm v11 beta errors (ERR_PNPM_IGNORED_BUILDS) when dependencies have build scripts that haven't been explicitly approved via `pnpm approve-builds`. This is a breaking change from pnpm v10 which silently ignored them. Since the benchmarks intentionally skip install scripts to measure only dependency resolution + linking, add --ignore-scripts to match the same approach used for npm, yarn classic, and bun. Co-authored-by: Darcy Clarke <darcy@darcyclarke.me>
1 parent 9ab6363 commit d0c3d36

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scripts/variations/common.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,14 @@ BENCH_SETUP_NODE=""
8585
# measure dependency resolution + linking only (not arbitrary postinstall work).
8686
# npm, yarn classic, bun: run scripts by default → --ignore-scripts
8787
# berry, zpm, pnpm v10+, vlt: don't run scripts by default → no flag needed
88+
# pnpm v11+: errors on ignored build scripts (ERR_PNPM_IGNORED_BUILDS) → --ignore-scripts
8889
# deno: doesn't run scripts by default → removed --allow-scripts
8990
BENCH_INSTALL_NPM="npm install --no-audit --no-fund --ignore-scripts --silent"
9091
BENCH_INSTALL_YARN="corepack yarn@1 install --ignore-scripts --silent"
9192
BENCH_INSTALL_BERRY="corepack yarn@latest install"
9293
BENCH_INSTALL_ZPM="yarn install --silent"
9394
BENCH_INSTALL_PNPM="corepack pnpm@latest install --silent"
94-
BENCH_INSTALL_PNPM11="corepack pnpm@next-11 install --silent"
95+
BENCH_INSTALL_PNPM11="corepack pnpm@next-11 install --ignore-scripts --silent"
9596
BENCH_INSTALL_VLT="vlt install --view=silent"
9697
BENCH_INSTALL_BUN="bun install --ignore-scripts --silent"
9798
BENCH_INSTALL_DENO="deno install --quiet"

0 commit comments

Comments
 (0)