Repository navigation
Description
Proposal
Evaluate upgrading the repo's pinned package manager from pnpm 10 ([email protected]) to pnpm 11.
Filing this as a discussion issue rather than a PR because it touches the release process, CI, the lockfile, and every contributor's local setup, so it deserves maintainer buy-in before any code change.
Migration guide: https://pnpm.io/migration
Why consider it
Per pnpm's v11 release notes / migration guide, the headline improvements are:
- Supply-chain security by default -- stricter defaults around dependency install and build scripts. This aligns with the direction of the recently added 7-day
minimumReleaseAge(chore(deps): add 7-day pnpm minimumReleaseAge #3669). - Monorepo performance -- install/resolution improvements for workspaces.
- Isolated global installs -- global installs no longer share a single dependency tree.
Requirements / breaking changes to weigh
-
Node.js 22+ required. CI already runs Node 24, so this is likely already satisfied; worth confirming the minimum supported version for local dev.
-
pnpm 11 ships ESM-only.
-
Breaking config changes. The one that directly affects this repo: pnpm 11 no longer reads
pnpm.overrides/pnpm.onlyBuiltDependenciesfrompackage.json-- these move topnpm-workspace.yaml. Running pnpm 11 against the current tree emits:The "pnpm" field in package.json is no longer read by pnpm. The following keys were ignored: "pnpm.overrides", "pnpm.onlyBuiltDependencies".
Left unmigrated, a
--frozen-lockfileinstall fails withERR_PNPM_LOCKFILE_CONFIG_MISMATCHbecause the lockfile records overrides the config no longer provides.
Repo-specific migration checklist
- Move
pnpm.overridesandpnpm.onlyBuiltDependenciesfrompackage.jsonintopnpm-workspace.yaml. - Bump the
packageManagerpin to pnpm 11 (and confirmdevEngines.packageManagerstill behaves as intended). - Regenerate
pnpm-lock.yamlunder pnpm 11 and review the diff for unexpected re-resolution. - Re-verify the
minimumReleaseAgesupply-chain policy and the--trust-lockfilepath (chore(deps): add 7-day pnpm minimumReleaseAge #3669) under pnpm 11. - Update
CONTRIBUTING.md(thepnpm@10,PNPM_VERSION=10.34.1, andnpm install -g pnpm@10references). - Confirm CI (
pnpm/action-setup@v6, Node 24) picks up the new pin andpnpm install --frozen-lockfilepasses acrossci.yml,cli-smoke-test.yml, andcodemod-verify.yml. - Document the minimum supported Node version for local dev (Node 22+).
Open question for maintainers
Is the upgrade worth doing now, or should we stay on the current pnpm 10 pin? pnpm 10.34.1 is healthy, so the main draws are the supply-chain-by-default posture and monorepo performance, weighed against the migration and contributor-coordination cost above. Happy to open the PR if there's appetite.
Activity
chore: upgrade pinned package manager to pnpm 11
cixzhang commentedon Jul 10, 2026
Resolved by #3700 (merged 2026-07-10). The evaluation is complete and pnpm 11 is now the project standard.