forked from yarnpkg/yarn
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix 4263: Make upgrade and upgrade-interactive compatible with worksp…
…aces (yarnpkg#4278) * make upgrade and upgrade-interactive compatible with workspaces * lint * flow * feedback from @arcanis * fix flow * remove lockfile pattern for normal upgrade interactive
- Loading branch information
1 parent
d697a4c
commit 3159074
Showing
8 changed files
with
56 additions
and
4 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
9 changes: 9 additions & 0 deletions
9
__tests__/fixtures/upgrade/fixed-to-latest-workspaces/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,9 @@ | ||
{ | ||
"private": true, | ||
"devDependencies": { | ||
"max-safe-integer": "1.0.0" | ||
}, | ||
"workspaces": [ | ||
"packages" | ||
] | ||
} |
9 changes: 9 additions & 0 deletions
9
__tests__/fixtures/upgrade/fixed-to-latest-workspaces/packages/workspace-child/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,9 @@ | ||
{ | ||
"name": "workspace-1", | ||
"version": "1.0.0", | ||
"scripts": { | ||
"prescript": "echo workspace-1 prescript", | ||
"script": "echo workspace-1 script", | ||
"postscript": "echo workspace-1 postscript" | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
__tests__/fixtures/upgrade/fixed-to-latest-workspaces/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 | ||
|
||
|
||
max-safe-integer@1.0.0: | ||
version "1.0.0" | ||
resolved "https://registry.yarnpkg.com/max-safe-integer/-/max-safe-integer-1.0.0.tgz#4662073a02c7e02d38153e25795489b20be6f01a" |
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