chore: enforce pnpm 11 #454
main fromrefs/pull/454/head·opened Adds engines.pnpm >=11.0.0 to TanStack/cli.
| Scenario | Result |
|---|---|
pnpm@11+ install | Allowed |
pnpm@11+ run ... | Allowed |
pnpm@9 install | Blocked by engines.pnpm |
pnpm@9 run ... | Blocked by engines.pnpm |
pnpm@10 install with default pnpm version management | Usually hands off to packageManager and runs as the declared pnpm version |
pnpm@10 run ... with default pnpm version management | Usually hands off to packageManager and runs as the declared pnpm version |
pnpm@10 install with version handoff disabled | Blocked by engines.pnpm |
pnpm@10 run ... with version handoff disabled | Blocked by engines.pnpm |
pnpm@9/10 list | Not blocked |
pnpm@9/10 exec ... | Not blocked |
| Field | What It Does |
|---|---|
packageManager | Helps tools/newer pnpm select or hand off to the declared pnpm version |
engines.pnpm: ">=11.0.0" | Fails important project workflows when an older pnpm is actually executing them |
engines.pnpm | Does not intercept every pnpm subcommand |
Summary by CodeRabbit#
- Chores
- Updated project requirements to specify pnpm version 11.0.0 or higher as the minimum supported package manager for installation and development.
- 1
Thanks for looking at the version check. Is there a command in the current checkout that needs pnpm 11 after the existing version pin is bypassed? The proposed floor would also reject a pnpm 10 setup that currently builds.
AI review notes: On current main, pnpm 10.33.2 with version handoff disabled accepted the frozen lockfile and built all 10 projects in an isolated checkout. The install used
--ignore-scripts, so this does not cover lifecycle scripts. pnpm 9.15.5 already rejects the frozen lockfile with an overrides mismatch. Adding the proposed engine field replaces that error with a clearer version message on pnpm 9, and makes pnpm 10.33.2 reject the same install and script entry point. The pinned pnpm 11.1.0 accepted the field.
Sign in to join this conversation.
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID:
b7103291-3577-4c62-95be-56a0b98729ea📥 Commits
Reviewing files that changed from the base of the PR and between efb411e4b002c1995a368e34066511afd7dba4e8 and dd94d3fdb28e14571e514421ca4d62063aa9d6bb.
📒 Files selected for processing (1)
package.json📝 Walkthrough
Walkthrough#
This PR adds a package manager version constraint to
package.json, specifying that the project requires pnpm version 11.0.0 or higher via theenginesfield. No other package configuration was modified.Changes#
Package Configuration
package.jsonenginesblock declarespnpm >= 11.0.0as the minimum supported version.Estimated code review effort#
🎯 1 (Trivial) | ⏱️ ~2 minutes
Poem#
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
✨ Finishing Touches
🧪 Generate unit tests (beta)
Comment `@coderabbitai help` to get the list of available commands and usage tips.