Repository navigation
Fix pnpm 10 publishing with npm 12 - #2276
Conversation
✅ Deploy Preview for changesets ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
🦋 Changeset detectedLatest commit: 78679fa The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #2276 +/- ##
==========================================
+ Coverage 86.68% 87.40% +0.71%
==========================================
Files 78 78
Lines 2937 2954 +17
Branches 831 843 +12
==========================================
+ Hits 2546 2582 +36
+ Misses 347 337 -10
+ Partials 44 35 -9 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
6ca021d to
e1f2357
Compare
e1f2357 to
611d4a5
Compare
611d4a5 to
85154fb
Compare
|
I think eventually we should have each tool handle the major version internally itself, but this is also fine for now |
yeah, I mainly went with this approach to avoid refactoring things. Those tools are not stateful right now and I didn't want to recheck the version on each "method" invocation |
CLI 3.0.3+ unwraps npm 12's array-wrapped `npm info --json` and uses `pnpm info` in pnpm repos (changesets/changesets#2276), so npm@latest is safe on the v2 line; repobuddy @v2 has published on npm 12.2.1 (repobuddy/.github#77). Scope the pnpm TypeError to CLI 3.0.0-3.0.2 (changesets/changesets#2274). @v1 (action v1 + CLI 2, npm@latest) stays broken; a CLI 2 repo pins npm 11 (>= 11.5.1) itself. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: unional <homawong@gmail.com>
fixes #2274