Skip to content

chore: migrate from yarn to pnpm#16419

Merged
BYK merged 4 commits intomasterfrom
chore/migrate-yarn-to-pnpm
Feb 18, 2026
Merged

chore: migrate from yarn to pnpm#16419
BYK merged 4 commits intomasterfrom
chore/migrate-yarn-to-pnpm

Conversation

@BYK
Copy link
Member

@BYK BYK commented Feb 17, 2026

Summary

Migrate the project's package manager from Yarn Classic (1.22.22) to pnpm (10.30.0) with strict hoisting.

What changed

  • Package manager files: Replaced yarn.lock + .yarnrc.yml with pnpm-lock.yaml + .npmrc
  • Version management: Volta (volta.pnpm) + packageManager field (both)
  • Strict hoisting: Uses pnpm's default strict node_modules layout — no shamefully-hoist
  • 14 phantom dependencies declared: Packages that were silently available via yarn's flat hoisting are now explicitly declared in package.json:
    • Runtime: @radix-ui/react-popover, @radix-ui/react-select, @sentry/browser, classnames, hast-util-heading-rank, hast-util-to-string, mdast-util-from-markdown, mdast-util-to-markdown, mdast-util-to-string, refractor, remark-rehype, unist-util-visit
    • Types: @types/hast, @types/mdast, @types/unist
    • Dev: postcss-import
  • pnpm config: resolutionspnpm.overrides, added pnpm.onlyBuiltDependencies for native build scripts
  • Type workaround: Added src/@types/remark-mdx-images.d.ts + tsconfig.json paths override for remark-mdx-images (ships .ts source files that conflict under strict isolation)
  • CI: All 4 GitHub Actions workflows updated (pnpm/action-setup@v4, cache: 'pnpm', command changes)
  • Docs & tooling: Makefile, CONTRIBUTING.md, AGENTS.md, develop-docs/, .gitignore, _typos.toml, .claude/settings.json

Verification

  • pnpm install — clean install, no warnings
  • pnpm test:ci — 9 test suites, 100 tests pass
  • pnpm lint:ts — clean (no type errors)

Not changed

  • docs/ and platform-includes/ MDX files — these contain yarn add @sentry/* as end-user SDK install instructions, not project tooling
  • public/_platforms/ JSON files — generated build artifacts

@vercel
Copy link

vercel bot commented Feb 17, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
develop-docs Ready Ready Preview, Comment Feb 18, 2026 10:58am
sentry-docs Ready Ready Preview, Comment Feb 18, 2026 10:58am

Request Review

BYK and others added 4 commits February 18, 2026 10:46
Migrate the project's package manager from Yarn Classic (1.22.22) to pnpm (10.30.0).

Key changes:
- Replace yarn.lock with pnpm-lock.yaml and add .npmrc config
- Use Volta + packageManager field for pnpm version management
- Use pnpm's strict hoisting (default) instead of yarn's flat hoisting
- Declare 14 phantom dependencies that were silently hoisted by yarn:
  @radix-ui/react-popover, @radix-ui/react-select, @sentry/browser,
  classnames, hast-util-heading-rank, hast-util-to-string,
  mdast-util-from-markdown, mdast-util-to-markdown, mdast-util-to-string,
  refractor, remark-rehype, unist-util-visit, postcss-import,
  and type packages @types/hast, @types/mdast, @types/unist
- Convert yarn resolutions to pnpm.overrides
- Add pnpm.onlyBuiltDependencies for native packages
- Add type declaration for remark-mdx-images (ships .ts sources)
- Update all 4 GitHub Actions workflows for pnpm
- Update Makefile, CONTRIBUTING.md, AGENTS.md, and develop-docs

Co-Authored-By: Claude <noreply@anthropic.com>
- .gitignore: Remove redundant debug log patterns (*.log already covers them)
- sync-labels.yml: Use pnpm dlx instead of npx, add pnpm/action-setup
- .npmrc: Remove entirely (no pre/post lifecycle scripts in project)
- _typos.toml: Narrow *.yaml to pnpm-lock.yaml specifically

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
@BYK BYK merged commit db3e928 into master Feb 18, 2026
17 checks passed
@BYK BYK deleted the chore/migrate-yarn-to-pnpm branch February 18, 2026 12:17
BYK added a commit that referenced this pull request Feb 18, 2026
Missed during the yarn-to-pnpm migration in #16419.

Co-Authored-By: Claude <noreply@anthropic.com>
BYK added a commit that referenced this pull request Feb 18, 2026
## Summary

Updates remaining `yarn` references missed during the yarn-to-pnpm
migration in #16419.

## Changes

- **`docs/contributing/environment.mdx`** — Replace all `yarn` commands
and the Yarn prerequisite link with `pnpm` equivalents
- **`specs/llm-friendly-docs.md`** — Replace `yarn generate-doctree`,
`yarn next build`, `yarn generate-md-exports`, and `yarn build` with
`pnpm`

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
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.

2 participants

Comments