Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(upgrade): Fix yarn upgrade when using --scope with exotic deps (#…
…7017) * fix(upgrade): Fix yarn upgrade when using --scope with exotic dependencies. Exotic dependencies (github urls for example) were not being unlocked from the lockfile when running `yarn upgrade --scope @whatever/` which was resulting in dependencies not being upgraded. This was due to trying to find the dep in the lockfile just by it's url instead of in `name@url` format. fixes #7016 * updated changelog
- Loading branch information
Showing
6 changed files
with
30 additions
and
2 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
5 changes: 5 additions & 0 deletions
5
__tests__/fixtures/upgrade/package-not-in-registry-scoped/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,5 @@ | ||
{ | ||
"dependencies": { | ||
"@yarn/test-git-repo": "https://github.com/yarnpkg/e2e-test-repo#master" | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
__tests__/fixtures/upgrade/package-not-in-registry-scoped/yarn.lock
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 @@ | ||
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. | ||
# yarn lockfile v1 | ||
|
||
|
||
"@yarn/test-git-repo@https://github.com/yarnpkg/e2e-test-repo#master": | ||
version "1.0.0" | ||
resolved "https://github.com/yarnpkg/e2e-test-repo#5c57959f3c55a6cd6004e3855ca59ba98bfff56c" |
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