-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
These changes lay the groundwork for [Corepack](https://nodejs.org/docs/latest/api/corepack.html) support in Node.js projects. [Yarn 4 already prefers corepack for installation](https://yarnpkg.com/getting-started/install) so this feature will be available for use with Yarn and, in the future, it will be expanded to support pnpm. [W-15237072](https://gus.lightning.force.com/a07EE00001m2GDFYA2)
- Loading branch information
1 parent
9b6f31c
commit 375fd1a
Showing
37 changed files
with
481 additions
and
19 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 @@ | ||
A fake README, to keep npm from polluting stderr. |
This file contains 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,16 @@ | ||
{ | ||
"name": "corepack-test-app", | ||
"version": "0.0.1", | ||
"description": "corepack availability test app", | ||
"repository" : { | ||
"type" : "git", | ||
"url" : "http://github.com/example/example.git" | ||
}, | ||
"engines": { | ||
"node": "14.18.0" | ||
}, | ||
"scripts": { | ||
"start": "node foo.js" | ||
}, | ||
"packageManager": "yarn@2.2.2" | ||
} |
This file contains 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 @@ | ||
A fake README, to keep npm from polluting stderr. |
This file contains 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,16 @@ | ||
{ | ||
"name": "corepack-test-app", | ||
"version": "0.0.1", | ||
"description": "corepack availability test app", | ||
"repository" : { | ||
"type" : "git", | ||
"url" : "http://github.com/example/example.git" | ||
}, | ||
"engines": { | ||
"node": "14.19.0" | ||
}, | ||
"scripts": { | ||
"start": "node foo.js" | ||
}, | ||
"packageManager": "yarn@2.2.2" | ||
} |
This file contains 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 @@ | ||
A fake README, to keep npm from polluting stderr. |
This file contains 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,16 @@ | ||
{ | ||
"name": "corepack-test-app", | ||
"version": "0.0.1", | ||
"description": "corepack availability test app", | ||
"repository" : { | ||
"type" : "git", | ||
"url" : "http://github.com/example/example.git" | ||
}, | ||
"engines": { | ||
"node": "15.x" | ||
}, | ||
"scripts": { | ||
"start": "node foo.js" | ||
}, | ||
"packageManager": "yarn@2.2.2" | ||
} |
This file contains 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 @@ | ||
A fake README, to keep npm from polluting stderr. |
This file contains 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,16 @@ | ||
{ | ||
"name": "corepack-test-app", | ||
"version": "0.0.1", | ||
"description": "corepack availability test app", | ||
"repository" : { | ||
"type" : "git", | ||
"url" : "http://github.com/example/example.git" | ||
}, | ||
"engines": { | ||
"node": "16.8.0" | ||
}, | ||
"scripts": { | ||
"start": "node foo.js" | ||
}, | ||
"packageManager": "yarn@2.2.2" | ||
} |
This file contains 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 @@ | ||
A fake README, to keep npm from polluting stderr. |
This file contains 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,16 @@ | ||
{ | ||
"name": "corepack-test-app", | ||
"version": "0.0.1", | ||
"description": "corepack availability test app", | ||
"repository" : { | ||
"type" : "git", | ||
"url" : "http://github.com/example/example.git" | ||
}, | ||
"engines": { | ||
"node": "16.9.0" | ||
}, | ||
"scripts": { | ||
"start": "node foo.js" | ||
}, | ||
"packageManager": "yarn@2.2.2" | ||
} |
This file contains 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 @@ | ||
A fake README, to keep npm from polluting stderr. |
This file contains 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,16 @@ | ||
{ | ||
"name": "corepack-test-app", | ||
"version": "0.0.1", | ||
"description": "corepack availability test app", | ||
"repository" : { | ||
"type" : "git", | ||
"url" : "http://github.com/example/example.git" | ||
}, | ||
"engines": { | ||
"node": "20.9.0" | ||
}, | ||
"scripts": { | ||
"start": "node foo.js" | ||
}, | ||
"packageManager": "yarn@3.6.3" | ||
} |
This file contains 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,7 @@ | ||
.yarn/* | ||
!.yarn/cache | ||
!.yarn/patches | ||
!.yarn/plugins | ||
!.yarn/releases | ||
!.yarn/sdks | ||
!.yarn/versions |
Binary file added
BIN
+1.6 MB
...4-with-corepack-and-engine/.yarn/cache/@types-node-npm-16.11.26-6163d95b7d-9e26dc087b.zip
Binary file not shown.
Binary file added
BIN
+11.1 KB
.../yarn-4-with-corepack-and-engine/.yarn/cache/echo-cli-npm-2.0.0-b40e6b6835-5e5d6394b2.zip
Binary file not shown.
Binary file added
BIN
+6.58 KB
...-corepack-and-engine/.yarn/cache/string.fromcodepoint-npm-0.2.1-84d94c4fb5-2e26c7370d.zip
Binary file not shown.
Binary file added
BIN
+15.9 KB
...rn-4-with-corepack-and-engine/.yarn/cache/unescape-js-npm-1.1.4-f41cc6935a-4f7cda5c52.zip
Binary file not shown.
Binary file added
BIN
+132 KB
...ures/yarn-4-with-corepack-and-engine/.yarn/cache/uuid-npm-9.0.0-46c41e3e43-8867e43899.zip
Binary file not shown.
This file contains 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 @@ | ||
enableColors: false |
20 changes: 20 additions & 0 deletions
20
test/fixtures/yarn-4-with-corepack-and-engine/package.json
This file contains 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,20 @@ | ||
{ | ||
"name": "yarn-4", | ||
"version": "1.0.0", | ||
"main": "index.js", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"@types/node": "16.11.26", | ||
"uuid": "9.0.0" | ||
}, | ||
"dependencies": { | ||
"echo-cli": "2.0.0" | ||
}, | ||
"scripts": { | ||
"build": "echo-cli 'Build script check'" | ||
}, | ||
"packageManager": "yarn@4.1.1", | ||
"engines": { | ||
"yarn": "4.1.1" | ||
} | ||
} |
Oops, something went wrong.