feat: run the pnpm self-update before the dependency update - #4
Conversation
Updating the pin first means every later pnpm invocation delegates to the freshly pinned version through the package-manager check, so the runtime bump, the dependency update, and the lockfile in the pull request are all produced by the pnpm version the PR moves the repository onto — instead of the old version writing a lockfile that the new pin then has to reinterpret. The release-age override moves from an export to a per-invocation env prefix: it previously relied on self-update being the last step for its scoping, and it must not leak into the dependency update, which keeps the repository's own release-age settings. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Warning Review limit reached
Next review available in: 40 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
PR Summary by QodoRun pnpm self-update before dependency updates
AI Description
Diagram
High-Level Assessment
Files changed (4)
|
…13516) Picks up pnpm/update#4: the pin bump now happens first, so the dependency update and the refreshed lockfile are produced by the pnpm version the update PR moves the repository onto. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Summary
Moves the
pnpm self-updatestep from the end ofupdate.shto the beginning. Once the pin is bumped, every laterpnpminvocation delegates to the freshly pinned version via the package-manager check, so the runtime bump, the dependency update, and the resulting lockfile are all produced by the pnpm version the pull request moves the repository onto — rather than the old version writing a lockfile that the new pin then has to reinterpret on the PR's CI.The
update-pnpm-minimum-release-ageoverride changes from anexportto a per-invocation env prefix: it previously relied on self-update being the last step for its scoping, and it must not leak into the dependency update (which keeps the repository's own release-age settings).Testing
bats test/— 32 tests pass, including a new one asserting self-update precedesupdate --recursivein the invocation log, and the existing scoping test confirmingPNPM_CONFIG_MINIMUM_RELEASE_AGEreaches only the self-update invocation.Written by an agent (Claude Code, claude-fable-5).