Repository navigation
refactor(monorepo): migrate to pnpm 11 - #12109
Merged
Merged
Conversation
Not great but let's add content plugins to monorepo root: this fixes some Vitest fixture tests See also: packages/docusaurus/src/webpack/__tests__/client.test.ts packages/docusaurus/src/webpack/__tests__/server.test.ts
…ted react-helmet-async dependency
…1' into codex/migrate-monorepo-to-pnpm-11
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
✅ [V2]
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ [V2]
To edit notification comments on pull requests, go to your Netlify project configuration. |
slorber
commented
Jun 4, 2026
| with: | ||
| node-version: lts/* | ||
| cache: yarn | ||
| # ⚠️ Do not use any cache on purpose |
Collaborator
Author
There was a problem hiding this comment.
not strictly needed but useful security addition
Comment on lines
-48
to
+56
| - name: Check for suspicious yarn.lock | ||
| # for allowed aliases, see https://github.com/yargs/cliui/pull/139/files#r1670711112 | ||
| run: yarn lockfile-lint --path yarn.lock --type yarn --allowed-hosts yarn --validate-https --validate-package-names --validate-integrity --empty-hostname=false --allowed-package-name-aliases react-loadable react-helmet-async string-width-cjs strip-ansi-cjs wrap-ansi-cjs react-is-18 react-is-19 | ||
| # TODO lockfile-lint does not support pnpm-lock.yaml yet, so this check is | ||
| # disabled until pnpm support lands. | ||
| # See https://github.com/lirantal/lockfile-lint#what-about-pnpm-support | ||
| # - name: Check for suspicious pnpm-lock.yaml | ||
| # # for allowed aliases, see https://github.com/yargs/cliui/pull/139/files#r1670711112 | ||
| # run: pnpm lockfile-lint --path pnpm-lock.yaml --type npm --allowed-hosts npm --validate-https --validate-package-names --validate-integrity --empty-hostname=false --allowed-package-name-aliases react-loadable react-helmet-async string-width-cjs strip-ansi-cjs wrap-ansi-cjs react-is-18 react-is-19 |
Collaborator
Author
There was a problem hiding this comment.
disabled lockfile-lint because it doesn't seem needed with pnpm (although there's an open issue to support it? worth doublechecking)
Comment on lines
+73
to
+74
| '@swc/core': false | ||
| core-js: false |
Collaborator
Author
There was a problem hiding this comment.
changed because it's not really needed: our init template uses Rspack by default, including built-in SWC, not Babel/SWC
2 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
We have been using Yarn v1 for a while, but it's not maintained anymore.
pnpm has been the bleeding edge in terms of supply chain security features, among other things, and won the heart of the node community. I've been considering migration to it for a while already, and now with all these supply chain attacks, this migration becomes even more critical.
Note: the Yarn team is working on v4 (current version) + v6 (WIP Rust rewrite). There are good security options here, but as of today, the pnpm community is larger, and pnpm adds security features faster than Yarn.
In the future, we'll likely do other related changes, including:
nodeLinker: 'hoisted'to simplify the migration)catalog:andworkspace:: this may require adjusting our publish pipelineTest Plan
CI
Test links
https://deploy-preview-12109--docusaurus-2.netlify.app/