-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(upgrade, add): Separately log added/upgraded dependencies (#5227)
* feat(upgrade, add): Separate added/upgraded dependencies into direct/transitive When adding or upgrading dependencies, group the dependencies into directly required ones vs. transitive ones so that version shown is clearer to the end user. https://github.com/yarnpkg/rfcs/blob/master/accepted/0000-show-updated-packages-only.md * fix tests * flow * review feedback * add snapshots * update snapshots
- Loading branch information
Showing
8 changed files
with
164 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`should add lockfile package 1`] = ` | ||
Array [ | ||
"info No lockfile found.", | ||
"[1/4] Resolving packages...", | ||
"[2/4] Fetching packages...", | ||
"[3/4] Linking dependencies...", | ||
"[4/4] Building fresh packages...", | ||
"success Saved lockfile.", | ||
"success Saved 1 new dependency.", | ||
"info Direct dependencies", | ||
"└─ lockfile@1.0.3", | ||
"info All dependencies", | ||
"└─ lockfile@1.0.3", | ||
] | ||
`; | ||
|
||
exports[`should add package 1`] = ` | ||
Array [ | ||
"info No lockfile found.", | ||
"[1/4] Resolving packages...", | ||
"[2/4] Fetching packages...", | ||
"[3/4] Linking dependencies...", | ||
"[4/4] Building fresh packages...", | ||
"success Saved lockfile.", | ||
"success Saved 1 new dependency.", | ||
"info Direct dependencies", | ||
"└─ left-pad@1.2.0", | ||
"info All dependencies", | ||
"└─ left-pad@1.2.0", | ||
] | ||
`; | ||
|
||
exports[`should add package with frozen-lockfile option 1`] = ` | ||
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", | ||
"└─ repeating@3.0.0", | ||
"info All dependencies", | ||
"└─ repeating@3.0.0", | ||
] | ||
`; | ||
|
||
exports[`should add package with no-lockfile option 1`] = ` | ||
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", | ||
"└─ repeating@3.0.0", | ||
"info All dependencies", | ||
"└─ repeating@3.0.0", | ||
] | ||
`; | ||
|
||
exports[`should add package with no-lockfile option in front 1`] = ` | ||
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", | ||
"└─ split-lines@1.1.0", | ||
"info All dependencies", | ||
"└─ split-lines@1.1.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
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,5 @@ | ||
{ | ||
"dependencies": { | ||
"async": "2.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. | ||
# yarn lockfile v1 | ||
|
||
|
||
async@2.0.0: | ||
version "2.0.0" | ||
resolved "https://registry.yarnpkg.com/async/-/async-2.0.0.tgz#d0900ad385af13804540a109c42166e3ae7b2b9d" | ||
dependencies: | ||
lodash "^4.8.0" | ||
|
||
lodash@^4.8.0: | ||
version "4.17.4" | ||
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae" |
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
d68b6c9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
git commit