-
Notifications
You must be signed in to change notification settings - Fork 3.6k
feat: migrate to pnpm from yarn v1.22.22 #7593
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
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
9644863
chore(repo): migrate to pnpm
lifeiscontent 901409f
chore(repo): cleanup pnpm integration with turbo
lifeiscontent 5f8e316
chore(repo): run lint
lifeiscontent e0aea3c
chore(repo): cleanup tsconfigs
lifeiscontent 688a74f
chore: align TypeScript to 5.8.3 across monorepo; update pnpm overrid…
lifeiscontent db00287
chore(repo): revert logger.ts changes
lifeiscontent e96fe46
fix: type errors
sriramveeraghanta 7a7b01d
fix: build errors
prateekshourya29 a433573
fix: pnpm home setup in dockerfiles
sriramveeraghanta File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| # Enforce pnpm workspace behavior and allow Turbo's lifecycle hooks if scripts are disabled | ||
| # This repo uses pnpm with workspaces. | ||
|
|
||
| # Prefer linking local workspace packages when available | ||
| prefer-workspace-packages=true | ||
| link-workspace-packages=true | ||
| shared-workspace-lockfile=true | ||
|
|
||
| # Make peer installs smoother across the monorepo | ||
| auto-install-peers=true | ||
| strict-peer-dependencies=false | ||
|
|
||
| # If scripts are disabled (e.g., CI with --ignore-scripts), allowlisted packages can still run their hooks | ||
| # Turbo occasionally performs postinstall tasks for optimal performance | ||
| # moved to pnpm-workspace.yaml: onlyBuiltDependencies (e.g., allow turbo) | ||
|
|
||
| public-hoist-pattern[]=eslint | ||
| public-hoist-pattern[]=prettier | ||
| public-hoist-pattern[]=typescript | ||
|
|
||
| # Enforce Node version for consistent installs | ||
| use-node-version=22.18.0 | ||
|
|
||
| # Reproducible installs across CI and dev | ||
| prefer-frozen-lockfile=true | ||
|
|
||
| # Prefer resolving to highest versions in monorepo to reduce duplication | ||
| resolution-mode=highest | ||
|
|
||
| # Speed up native module builds by caching side effects | ||
| side-effects-cache=true | ||
|
|
||
| # Speed up local dev by reusing local store when possible | ||
| prefer-offline=true | ||
|
|
||
| # Ensure workspace protocol is used when adding internal deps | ||
| save-workspace-protocol=true | ||
This file was deleted.
Oops, something went wrong.
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
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
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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,8 +21,6 @@ | |
|
|
||
| # debug | ||
| npm-debug.log* | ||
| yarn-debug.log* | ||
| yarn-error.log* | ||
| .pnpm-debug.log* | ||
|
|
||
| # local env files | ||
|
|
||
Oops, something went wrong.
Oops, something went wrong.
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.
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.
💡 Verification agent
🧩 Analysis chain
Align Node version across .npmrc and .nvmrc to avoid install-time mismatches
use-node-version=22.18.0 is strict. If .nvmrc differs, pnpm installs can fail. Ensure both match and CI uses the same Node.
Run to compare:
🏁 Script executed:
Length of output: 179
Align Node versions across .nvmrc and .npmrc
Our verification shows:
Since pnpm’s use-node-version check is strict, mismatched values will cause install failures in CI or on developers’ machines. Please update one of the following so both files specify the same version:
• Change .nvmrc →
22.18.0• Or set use-node-version=lts/jod in .npmrc (if you intend to rely on the LTS alias)
After updating, ensure your CI pipeline uses this same Node version.
🤖 Prompt for AI Agents