Skip to content
Source
Sign inSign up
TanStack/cli

chore: enforce pnpm 11 #454

OpenSheraff(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/454/headopened

Adds engines.pnpm >=11.0.0 to TanStack/cli.

ScenarioResult
pnpm@11+ installAllowed
pnpm@11+ run ...Allowed
pnpm@9 installBlocked by engines.pnpm
pnpm@9 run ...Blocked by engines.pnpm
pnpm@10 install with default pnpm version managementUsually hands off to packageManager and runs as the declared pnpm version
pnpm@10 run ... with default pnpm version managementUsually hands off to packageManager and runs as the declared pnpm version
pnpm@10 install with version handoff disabledBlocked by engines.pnpm
pnpm@10 run ... with version handoff disabledBlocked by engines.pnpm
pnpm@9/10 listNot blocked
pnpm@9/10 exec ...Not blocked
FieldWhat It Does
packageManagerHelps 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.pnpmDoes 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.

Review Change Stack

    1. coderabbitai[bot](GitHub profile, opens in a new tab)commented

      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 the engines field. No other package configuration was modified.

      Changes

      Package Configuration

      Layer / File(s)Summary
      pnpm version constraint
      package.json
      An engines block declares pnpm >= 11.0.0 as the minimum supported version.

      Estimated code review effort

      🎯 1 (Trivial) | ⏱️ ~2 minutes

      Poem

      A rabbit hops through package lands, Where pnpm must be eleven or more, The engines field now understands, Version constraints at the door! 🐰

      🚥 Pre-merge checks | ✅ 5
      ✅ Passed checks (5 passed)
      Check nameStatusExplanation
      Description Check✅ PassedCheck skipped - CodeRabbit’s high-level summary is enabled.
      Title check✅ PassedThe title 'chore: enforce pnpm 11' accurately reflects the main change: adding an engines requirement for pnpm >= 11.0.0 to package.json.
      Docstring Coverage✅ PassedNo functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
      Linked Issues check✅ PassedCheck skipped because no linked issues were found for this pull request.
      Out of Scope Changes check✅ PassedCheck skipped because no linked issues were found for this pull request.
      ✏️ Tip: You can configure your own custom pre-merge checks in the settings.
      ✨ Finishing Touches
      🧪 Generate unit tests (beta)
      • Create PR with unit tests

      Comment `@coderabbitai help` to get the list of available commands and usage tips.
    2. 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.