Skip to content

refactor(monorepo): migrate to pnpm 11 - #12109

Merged
slorber merged 45 commits into
meta:mainfrom
slorber:codex/migrate-monorepo-to-pnpm-11
Jun 4, 2026
Merged

slorber merged 45 commits into
meta:mainfrom
slorber:codex/migrate-monorepo-to-pnpm-11

Conversation

@slorber

@slorber slorber commented Jun 4, 2026 •

Copy link
Copy Markdown
Collaborator

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:

Test Plan

CI

Test links

https://deploy-preview-12109--docusaurus-2.netlify.app/

@slorber
slorber requested a review from Josh-Cena as a code owner June 4, 2026 14:06
@slorber slorber added the pr: maintenance This PR does not produce any behavior differences to end users when upgrading. label Jun 4, 2026
@meta-cla meta-cla Bot added the CLA Signed Signed Facebook CLA label Jun 4, 2026
@socket-security

socket-security Bot commented Jun 4, 2026 •

Copy link
Copy Markdown

@netlify

netlify Bot commented Jun 4, 2026

Copy link
Copy Markdown

✅ [V2]

Name Link
🔨 Latest commit 9d0610e
🔍 Latest deploy log https://app.netlify.com/projects/docusaurus-2/deploys/6a218d7e2ebb270008795e0f
😎 Deploy Preview https://deploy-preview-12109--docusaurus-2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Jun 4, 2026 •

Copy link
Copy Markdown

✅ [V2]

Name Link
🔨 Latest commit dcb0285
🔍 Latest deploy log https://app.netlify.com/projects/docusaurus-2/deploys/6a21aca931f54c00082fc468
😎 Deploy Preview https://deploy-preview-12109--docusaurus-2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

with:
node-version: lts/*
cache: yarn
# ⚠️ Do not use any cache on purpose

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed because it's not really needed: our init template uses Rspack by default, including built-in SWC, not Babel/SWC

Comment thread .github/workflows/tests-e2e.yml Resolved
Comment thread .github/workflows/tests-e2e.yml Resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Signed Facebook CLA pr: maintenance This PR does not produce any behavior differences to end users when upgrading.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant