Skip to content

chore: upgrade pnpm to v11#997

Merged
antfu merged 2 commits into
mainfrom
antfu/upgrade-pnpm-v11
May 19, 2026
Merged

chore: upgrade pnpm to v11#997
antfu merged 2 commits into
mainfrom
antfu/upgrade-pnpm-v11

Conversation

@antfu
Copy link
Copy Markdown
Member

@antfu antfu commented May 19, 2026

Summary

  • Bumps packageManager to pnpm@11.1.3 in the root and docs/ workspace.
  • Migrates pnpm-workspace.yaml to v11's new shape: onlyBuiltDependencies (array) → allowBuilds (map), and moves resolutions out of package.json into an overrides: section (v11 no longer reads settings from package.json).
  • pnpm-lock.yaml is unchanged — no dependency churn.

Test plan

  • pnpm install (fresh)
  • pnpm lint
  • pnpm build
  • pnpm typecheck

Bumps `packageManager` to pnpm@11.1.3 in the root and docs workspace
and migrates the pnpm-workspace.yaml config that v11 requires:

- `onlyBuiltDependencies` (array) → `allowBuilds` (map)
- Moves `resolutions` from `package.json` to `overrides` in
  `pnpm-workspace.yaml`, since v11 no longer reads settings from
  `package.json`

Lockfile is unchanged.
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 19, 2026

Deploying nuxt-devtools with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1406e3d
Status: ✅  Deploy successful!
Preview URL: https://30d500c0.nuxt-devtools.pages.dev
Branch Preview URL: https://antfu-upgrade-pnpm-v11.nuxt-devtools.pages.dev

View logs

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 19, 2026

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 6cb10683-ef46-4c67-bfe9-0ee979ddf4f4

📥 Commits

Reviewing files that changed from the base of the PR and between 96b4802 and 1406e3d.

📒 Files selected for processing (1)
  • docs/pnpm-workspace.yaml
✅ Files skipped from review due to trivial changes (1)
  • docs/pnpm-workspace.yaml

📝 Walkthrough

Walkthrough

This PR upgrades pnpm to version 11.1.3 and restructures dependency and build configuration across the monorepo. The packageManager field is updated in both the root and documentation packages. The root package configuration removes its resolutions block entirely. The pnpm workspace configuration adds an allowBuilds allowlist for native build packages and introduces an overrides section pinning dependencies via workspace:* and catalog:* references, while removing the older onlyBuiltDependencies block.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title 'chore: upgrade pnpm to v11' accurately and concisely summarizes the main change—upgrading pnpm to version 11 with necessary configuration migrations.
Description check ✅ Passed The description is directly related to the changeset, providing clear details about pnpm version upgrade, configuration format migrations, testing steps, and confirming no lock file changes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check 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
  • Commit unit tests in branch antfu/upgrade-pnpm-v11

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

The docs workspace runs its own `pnpm install` via the root
postinstall, so it needs its own v11 config migration. Without it
pnpm v11 aborts with ERR_PNPM_IGNORED_BUILDS for better-sqlite3,
esbuild, sharp, and vue-demi.
@antfu antfu merged commit 911faed into main May 19, 2026
7 of 8 checks passed
@antfu antfu deleted the antfu/upgrade-pnpm-v11 branch May 19, 2026 04:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant