forked from yarnpkg/yarn
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(run): Use bin scripts defined in a workspace package before the w…
…orkspace root. When resolving bin scripts, ones in the workspace root were being added to a Map last, overwriting those from the workspace package where the script was being run. This change will now favor workspace-package specific bins instead. fix yarnpkg#8590
- Loading branch information
Showing
9 changed files
with
103 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,6 +62,21 @@ Array [ | |
] | ||
`; | ||
|
||
exports[`should add package with no-lockfile option 2`] = ` | ||
Array [ | ||
"info No lockfile found.", | ||
"[1/4] Resolving packages...", | ||
"[2/4] Fetching packages...", | ||
"[3/4] Linking dependencies...", | ||
"[4/4] Building fresh packages...", | ||
"success Saved 1 new dependency.", | ||
"info Direct dependencies", | ||
"└─ [email protected]", | ||
"info All dependencies", | ||
"└─ [email protected]", | ||
] | ||
`; | ||
|
||
exports[`should add package with no-lockfile option in front 1`] = ` | ||
Array [ | ||
"info No lockfile found.", | ||
|
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
Empty file.
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,13 @@ | ||
{ | ||
"name": "yarn-issue-8590", | ||
"version": "1.0.0", | ||
"main": "index.js", | ||
"author": "yarn", | ||
"license": "MIT", | ||
"private": true, | ||
"workspaces": { | ||
"packages": [ | ||
"packages/*" | ||
] | ||
} | ||
} |
Empty file.
7 changes: 7 additions & 0 deletions
7
__tests__/fixtures/run/issue-8590/packages/workspace-a/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,7 @@ | ||
{ | ||
"name": "workspace-a", | ||
"version": "1.0.0", | ||
"dependencies": { | ||
"eslint": "8.57.0" | ||
} | ||
} |
Empty file.
7 changes: 7 additions & 0 deletions
7
__tests__/fixtures/run/issue-8590/packages/workspace-b/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,7 @@ | ||
{ | ||
"name": "workspace-b", | ||
"version": "1.0.0", | ||
"dependencies": { | ||
"eslint": "1.0.0" | ||
} | ||
} |
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