-
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
Merged
Merged
[LG-5610] pnpm 10
#3236
Changes from 4 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
9422da1
Update package.json
TheSonOfThomp dbc71a0
Create .tool-versions
TheSonOfThomp f326be4
Create nvm-to-asdf.sh
TheSonOfThomp cf25725
update workflows to pnpm10.18.3
TheSonOfThomp 1a1f455
Update .tool-versions
TheSonOfThomp c36ccb1
shebang
TheSonOfThomp 6331459
Merge branch 'main' into lg-5610-pnpm-10
TheSonOfThomp 8a37a1b
Merge branch 'main' into lg-5610-pnpm-10
TheSonOfThomp 65e7cf8
replace xml2json
TheSonOfThomp 87a76d4
Merge branch 'main' into lg-5610-pnpm-10
TheSonOfThomp 6756988
Update pnpm-lock.yaml
TheSonOfThomp 067145e
Update README.md
TheSonOfThomp 4f6efa5
Update README.md
TheSonOfThomp 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
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,2 @@ | ||
| nodejs 18.20.8 | ||
| pnpm 10.18.1 | ||
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 |
|---|---|---|
|
|
@@ -6,8 +6,9 @@ | |
| "private": true, | ||
| "engines": { | ||
| "node": ">= 18.20.8", | ||
| "pnpm": ">= 9.15.0" | ||
| "pnpm": ">= 10.18.3" | ||
| }, | ||
| "packageManager": "[email protected]", | ||
| "scripts": { | ||
| "init": "pnpm install && pnpm build", | ||
| "init:react17": "pnpm clean; npx node ./scripts/react17/init.mjs; pnpm run init", | ||
|
|
@@ -82,7 +83,11 @@ | |
| "caniuse-lite": "^1.0.30001585", | ||
| "jackspeak": "2.1.1", | ||
| "typescript": "$typescript" | ||
| } | ||
| }, | ||
| "onlyBuiltDependencies": [ | ||
| "core-js", | ||
| "esbuild" | ||
| ] | ||
| }, | ||
| "lg": { | ||
| "scopes": { | ||
|
|
@@ -107,7 +112,5 @@ | |
| }, | ||
| "bugs": { | ||
| "url": "https://github.com/mongodb/leafygreen-ui/issues" | ||
| }, | ||
| "packageManager": "[email protected]", | ||
| "typesVersions": {} | ||
| } | ||
| } | ||
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,60 @@ | ||
| # 1. Disable and clear corepack, | ||
TheSonOfThomp marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| if command -v corepack >/dev/null 2>&1; then | ||
| echo "Disabling corepack" | ||
| corepack cache clean | ||
| corepack disable | ||
| fi | ||
TheSonOfThomp marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| # 1b Disable nvm | ||
| if grep -q 'export NVM_DIR="\$HOME/.nvm"' ~/.zshrc; then | ||
| echo "Disabling nvm in ~/.zshrc..." | ||
| awk ' | ||
| BEGIN { skip = 0 } | ||
| { | ||
| if ($0 ~ /export NVM_DIR="\$HOME\/\.nvm"/) { | ||
| skip = 1 | ||
| } | ||
| if (skip && $0 ~ /^$/) { | ||
| skip = 0 | ||
| } | ||
| if (skip && $0 !~ /^#/) { | ||
| print "#" $0 | ||
| } else { | ||
| print $0 | ||
| } | ||
| } | ||
| ' ~/.zshrc > ~/.zshrc.tmp && mv ~/.zshrc.tmp ~/.zshrc | ||
TheSonOfThomp marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| fi | ||
|
|
||
| # 1c Disable pnpm | ||
| if grep -q 'export PNPM_HOME=' ~/.zshrc; then | ||
| echo "Disabling PNPM in ~/.zshrc..." | ||
| awk ' | ||
| BEGIN { skip = 0 } | ||
| { | ||
| if ($0 ~ /export PNPM_HOME=/) { | ||
| skip = 1 | ||
| } | ||
| if (skip && $0 ~ /^$/) { | ||
| skip = 0 | ||
| } | ||
| if (skip && $0 !~ /^#/) { | ||
| print "#" $0 | ||
| } else { | ||
| print $0 | ||
| } | ||
| } | ||
| ' ~/.zshrc > ~/.zshrc.tmp && mv ~/.zshrc.tmp ~/.zshrc | ||
TheSonOfThomp marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| fi | ||
|
|
||
| # 2. Install ASDF (if not already installed) | ||
| if ! command -v asdf >/dev/null 2>&1; then | ||
| echo "Installing asdf" | ||
| brew install asdf | ||
| # ... and add to path | ||
| echo 'export PATH="${ASDF_DATA_DIR:-$HOME/.asdf}/shims:$PATH"' >> ~/.zshrc | ||
| fi | ||
|
|
||
| # 3 Enable asdf | ||
| echo "Setting up asdf" | ||
| asdf install | ||
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.
Uh oh!
There was an error while loading. Please reload this page.