-
Notifications
You must be signed in to change notification settings - Fork 71
[LG-5610] pnpm 10
#3236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
[LG-5610] pnpm 10
#3236
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Upgrade repository tooling to pnpm 10 and introduce optional asdf support for managing Node and pnpm versions.
- Bumps pnpm from 9.15.0 to 10.18.3 across CI workflows and package.json.
- Adds .tool-versions for asdf and a migration script from nvm/corepack to asdf.
- Adds pnpm configuration (packageManager field placement and onlyBuiltDependencies) to optimize install behavior.
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| scripts/nvm-to-asdf.sh | Adds migration script to transition from nvm/corepack to asdf. |
| package.json | Updates pnpm engine/version and adds onlyBuiltDependencies plus relocates packageManager field. |
| .tool-versions | Introduces asdf version pinning for nodejs and pnpm. |
| .github/workflows/sizeDiff.yml | Updates pnpm version used in size diff workflow. |
| .github/workflows/release.yml | Updates pnpm version across all release workflow jobs. |
| .github/workflows/react17.yml | Updates pnpm version in React 17 compatibility workflow. |
| .github/workflows/pr.yml | Updates pnpm version across PR validation jobs. |
Co-authored-by: Copilot <[email protected]>
|
Size Change: 0 B Total Size: 1.62 MB ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀 🚀 🚀
✍️ Proposed changes
Updates monorepo tooling to use
pnpm10 (latest)Additionally, adds
.tool-versionsfile forasdfversion manager support.Use of
asdfis optional, but recommended for contributors who will also contribute to other MongoDB codebases that use asdf as a tool manager (Like mms)Migration to
asdfMigration to
asdfis optional, but recommended.To migrate from
nvm/corepacktoasdf, run the scriptscripts/nvm-to-asdf.sh, or manually do the following:corepack(if using)nvmin~/.zshrc~/.zshrcpnpmin ~/.zshrc~/.zshrcasdfasdfin theleafygreen-uidirectoryasdf install;