Skip to content

Commit 9ed576f

Browse files
committed
chore(deps): upgrade pnpm to 11.1.1
Bumps the corepack-managed pnpm version across the root and the four Angular example workspaces. pnpm 11 refuses to run install scripts by default; declare a minimal allowBuilds allowlist in pnpm-workspace.yaml so only the two packages whose postinstalls the build actually needs (esbuild, nx) are permitted. The other eight transitively-pulled postinstalls (sharp, lmdb, workerd, etc.) all fall back to JS paths or are unused during build, and are explicitly denied. Also pin the preinstall guard to only-allow@1.2.2 so it no longer resolves a floating tag from npm on every install.
1 parent 562ad00 commit 9ed576f

6 files changed

Lines changed: 35 additions & 6 deletions

File tree

examples/angular/a11y-devtools/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"test": "ng test"
1010
},
1111
"private": true,
12-
"packageManager": "pnpm@10.24.0",
12+
"packageManager": "pnpm@11.1.1",
1313
"dependencies": {
1414
"@angular/common": "^21.2.0",
1515
"@angular/compiler": "^21.2.0",

examples/angular/basic/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"test": "ng test"
1010
},
1111
"private": true,
12-
"packageManager": "pnpm@10.24.0",
12+
"packageManager": "pnpm@11.1.1",
1313
"dependencies": {
1414
"@angular/common": "^21.2.0",
1515
"@angular/compiler": "^21.2.0",

examples/angular/panel/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"test": "ng test"
1010
},
1111
"private": true,
12-
"packageManager": "pnpm@10.24.0",
12+
"packageManager": "pnpm@11.1.1",
1313
"dependencies": {
1414
"@angular/common": "^21.2.0",
1515
"@angular/compiler": "^21.2.0",

examples/angular/with-devtools/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"test": "ng test"
1010
},
1111
"private": true,
12-
"packageManager": "pnpm@10.24.0",
12+
"packageManager": "pnpm@11.1.1",
1313
"dependencies": {
1414
"@angular/common": "^21.2.0",
1515
"@angular/compiler": "^21.2.0",

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"type": "git",
66
"url": "git+https://github.com/TanStack/devtools.git"
77
},
8-
"packageManager": "pnpm@10.24.0",
8+
"packageManager": "pnpm@11.1.1",
99
"type": "module",
1010
"scripts": {
1111
"build": "nx affected --targets=build --exclude=examples/** && size-limit",
@@ -22,7 +22,7 @@
2222
"generate-docs": "node scripts/generate-docs.ts",
2323
"lint:fix": "nx affected --target=lint:fix --exclude=examples/**",
2424
"lint:fix:all": "pnpm run format && nx run-many --targets=lint --fix",
25-
"preinstall": "node -e \"if(process.env.CI == 'true') {console.log('Skipping preinstall...'); process.exit(1)}\" || npx -y only-allow pnpm",
25+
"preinstall": "node -e \"if(process.env.CI == 'true') {console.log('Skipping preinstall...'); process.exit(1)}\" || npx -y only-allow@1.2.2 pnpm",
2626
"size": "size-limit",
2727
"test": "pnpm run test:ci",
2828
"test:build": "nx affected --target=test:build --exclude=examples/**",

pnpm-workspace.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,32 @@ preferWorkspacePackages: true
55
packages:
66
- examples/**/*
77
- packages/*
8+
9+
# Explicit allowlist of packages whose install scripts may run. pnpm 11
10+
# refuses to run any postinstall by default; declaring them here is the
11+
# secure-by-default way to acknowledge them. Keep this list minimal:
12+
# only packages that are strictly required for the production build.
13+
#
14+
# Allowed (strictly required):
15+
# - esbuild: vite/tsup pull the platform binary in its postinstall
16+
# - nx: build orchestrator; postinstall sets up native bindings
17+
#
18+
# Denied (not required for `pnpm run build` / `pnpm run test:ci`):
19+
# - @parcel/watcher: only used for `nx watch`, not for builds
20+
# - lmdb / msgpackr-extract: nx cache optimization (JS fallback works)
21+
# - protobufjs: postinstall is a perf-only optimization
22+
# - sharp: not used by any package in this repo's build
23+
# - unrs-resolver: native fast-path resolver (JS fallback works)
24+
# - vue-demi: postinstall is a no-op outside Vue 2/3 projects
25+
# - workerd: only used by the bundling-repro example (excluded from build)
26+
allowBuilds:
27+
'@parcel/watcher': false
28+
esbuild: true
29+
lmdb: false
30+
msgpackr-extract: false
31+
nx: true
32+
protobufjs: false
33+
sharp: false
34+
unrs-resolver: false
35+
vue-demi: false
36+
workerd: false

0 commit comments

Comments
 (0)