Skip to content

Migrate from yarn to pnpm - #29374

Open
deedeeh wants to merge 12 commits into
mainfrom
dina/migrate-from-yarn-to-pnpm
Open

deedeeh wants to merge 12 commits into
mainfrom
dina/migrate-from-yarn-to-pnpm

Conversation

@deedeeh

@deedeeh deedeeh commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

What does this change?

This PR migrates from the package manager from yarn to pnpm to align with the dotcom repositories and as a follow up PR we want to move from actions/node-setup to pnpm/setup like in here.

Checklist

  • Tested locally, and on CODE if necessary

@deedeeh deedeeh added the maintenance Departmental tracking: maintenance work, not a fix or a feature label Nov 5, 2026
Comment thread pnpm-workspace.yaml Resolved
Comment thread pnpm-workspace.yaml Resolved
@deedeeh deedeeh linked an issue Nov 5, 2026 that may be closed by this pull request
@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Comment thread webpack.config.js
"react-dom": "preact/compat",
},
extensions: ['.js', '.ts', '.tsx', '.jsx'],
symlinks: false, // Inserted to enable linking @guardian/consent-management-platform

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The webpack bundling was failing in the client-build CI before removing that line which Copilot helped to debug the issue but I believe this is still important and it requires to be added somewhere else?

I kept this line in another commit but I had to add nodeLinker: hoisted in order for the bundling in CI to pass.

What would be the best practice for the symlinks to be false? Do we even need to keep it that way?

Comment thread pnpm-workspace.yaml Resolved
Comment thread pnpm-workspace.yaml
@@ -1,3 +1,4 @@
nodeLinker: hoisted

@deedeeh deedeeh Nov 9, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is required if we want to keep the symlinks: false in the webpack.config.js. Check doc for more info.

@deedeeh
deedeeh force-pushed the dina/migrate-from-yarn-to-pnpm branch from 458208f to caa45b1 Compare November 9, 2026 10:00
@deedeeh
deedeeh force-pushed the dina/migrate-from-yarn-to-pnpm branch from caa45b1 to a512489 Compare November 9, 2026 14:54
@deedeeh
deedeeh marked this pull request as ready for review November 9, 2026 15:11
@deedeeh
deedeeh requested review from a team as code owners November 9, 2026 15:11
@deedeeh
deedeeh requested a review from arelra November 11, 2026 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Departmental tracking: maintenance work, not a fix or a feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate from yarn to pnpm

2 participants