Skip to content

chore: migrate from yarn to pnpm#16419

Open
BYK wants to merge 2 commits intomasterfrom
chore/migrate-yarn-to-pnpm
Open

chore: migrate from yarn to pnpm#16419
BYK wants to merge 2 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 17, 2026 9:57pm
sentry-docs Ready Ready Preview, Comment Feb 17, 2026 9:57pm

Request Review

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>
@BYK BYK force-pushed the chore/migrate-yarn-to-pnpm branch from 77703d9 to 0c10494 Compare February 17, 2026 21:44
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