Skip to content

Commit 9bfe478

Browse files
Lukas Oppermannbestander
authored andcommitted
Update 0000-show-updated-packages-only.md (#48)
1 parent 60d194a commit 9bfe478

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

0000-show-updated-packages-only.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
- Start Date: 2017-02-10
2+
- RFC PR: (leave this empty)
3+
- Yarn Issue: (leave this empty)
4+
5+
# Summary
6+
7+
Show only updated packages on `yarn upgrade` with the new version.
8+
9+
# Motivation
10+
11+
When updating I want to know which of "my" packages have been updated (not dependencies of my dependencies) so that I can verify a package has been updated to the expected version. This makes it easy to spot incorrect version constraints you define within your package.json.
12+
13+
# Detailed design
14+
15+
Instead of just showing all dependencies the following should be shown.
16+
17+
```
18+
success Saved lockfile.
19+
success Saved 774 new dependencies.
20+
21+
Updated direct dependencies:
22+
├─ @webcomponents/[email protected]
23+
├─ @webcomponents/[email protected]
24+
├─ @webcomponents/[email protected]
25+
26+
All updated dependencies:
27+
├─ @webcomponents/[email protected]
28+
├─ @webcomponents/[email protected]
29+
├─ @webcomponents/[email protected]
30+
31+
32+
33+
34+
35+
├─ [email protected]    
36+
```
37+
38+
# How We Teach This
39+
40+
The new section should be shown when running upgrade. Nothing else should be needed.
41+
42+
# Drawbacks
43+
44+
Your dependencies will be shown twice, or a `flag` needs to be introduces or the current view (showing all packages is not available / needs a flag).
45+
46+
# Alternatives
47+
48+
- add a flag like `--only-deps` to only show my dependencies
49+
- or add a flag like `--all` to show the current version
50+
51+
# Unresolved questions
52+
53+
-

0 commit comments

Comments
 (0)