chore: enforce pnpm 11#7465
Conversation
📝 WalkthroughWalkthroughThe pull request adds a package manager version constraint to the root ChangesPackage Manager Configuration
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
🚀 Changeset Version PreviewNo changeset entries found. Merging this PR will not cause a version bump for any packages. |
|
View your CI Pipeline Execution ↗ for commit 14d9cf8
☁️ Nx Cloud last updated this comment at |
Summary
Adds a root
engines.pnpmrequirement of>=11.0.0alongside the existing exactpackageManagerdeclaration.What This Blocks
pnpm runproject-script workflows when that older pnpm binary is the one actually executing the command.ERR_PNPM_UNSUPPORTED_ENGINEerror with the expected range and actual pnpm version for those guarded paths.packageManageris not honored as an automatic handoff to pnpm 11+, or that handoff is explicitly disabled.What This Does Not Block
pnpm@11.1.0version. The engine range allows any pnpm>=11.0.0; the existingpackageManagerfield remains the exact version hint for tools and pnpm versions that honor it.packageManagerand hand off to pnpm 11.1.0 before running the command; in that case the command succeeds under pnpm 11 rather than failing under pnpm 10.pnpm listandpnpm execstill ran under pnpm 9/10.packageManager, or they need to install/invoke pnpm 11+.engineStrict; the blocking behavior here comes from pnpm honoring the projectengines.pnpmfield for install and run workflows.Verification
pnpm install --lockfile-only --frozen-lockfile --ignore-scriptssucceeds with pnpm 11.1.0.pnpm install --lockfile-only --frozen-lockfile --ignore-scriptswithERR_PNPM_UNSUPPORTED_ENGINE.pnpm runwithERR_PNPM_UNSUPPORTED_ENGINE.packageManagerand hands off to the declared package-manager version.npm_config_manage_package_manager_versions=false, pnpm 10.0.0 failspnpm install --lockfile-only --frozen-lockfile --ignore-scriptswithERR_PNPM_UNSUPPORTED_ENGINE.npm_config_manage_package_manager_versions=false, pnpm 10.0.0 failspnpm runwithERR_PNPM_UNSUPPORTED_ENGINE.pnpm list --depth 0andpnpm exec node -e "console.log('ok')"are not blocked by this field.