-
Notifications
You must be signed in to change notification settings - Fork 494
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dependency correctly when it's declared multiple times with di…
…fferent ranges (#412) * update a dependency correctly when it's declared multiple times with differen range * Create nice-eels-study.md * fix lint issue * fix test * Update package.json Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com> * Update packages/cli/src/commands/version/version.test.ts Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com> * update comment * Update .changeset/nice-eels-study.md Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com> * address comments * fix lint * update test description * update test to use more realistic scenario * tweak test title * tweak changeset content Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
- Loading branch information
Showing
9 changed files
with
168 additions
and
50 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,6 @@ | ||
--- | ||
"@changesets/assemble-release-plan": patch | ||
"@changesets/cli": patch | ||
--- | ||
|
||
Fixed an issue with the same package specified as a different dependency type with different range types not being updated correctly for all of them. |
3 changes: 3 additions & 0 deletions
3
__fixtures__/simple-project-same-dep-diff-range/.changeset/README.md
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,3 @@ | ||
# We just want a file in here so git collects it | ||
|
||
For this we have deliberately not included a config file, as we want to test the defaults |
1 change: 1 addition & 0 deletions
1
__fixtures__/simple-project-same-dep-diff-range/.changeset/config.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 @@ | ||
{} |
11 changes: 11 additions & 0 deletions
11
__fixtures__/simple-project-same-dep-diff-range/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,11 @@ | ||
{ | ||
"private": true, | ||
"name": "simple-project", | ||
"description": "three projects, each depending on one other", | ||
"version": "1.0.0", | ||
"bolt": { | ||
"workspaces": [ | ||
"packages/*" | ||
] | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
__fixtures__/simple-project-same-dep-diff-range/packages/pkg-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,10 @@ | ||
{ | ||
"name": "pkg-a", | ||
"version": "1.0.0", | ||
"peerDependencies": { | ||
"pkg-b": "^1.0.0" | ||
}, | ||
"devDependencies": { | ||
"pkg-b": "1.0.0" | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
__fixtures__/simple-project-same-dep-diff-range/packages/pkg-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,4 @@ | ||
{ | ||
"name": "pkg-b", | ||
"version": "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
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