forked from changesets/changesets
-
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.
Fixed an issue with incorrect dependent updates on none changesets wi…
…th `updateInternalDependents: "always"` (changesets#949) * Add tests to showcase buggy behaviour Test that when `updateInternalDependents:'always'` is set then transitive dependencies of devDependencies should not be part of the release plan. * Fixed the issue * Tweak test title * Check first if the `nextRelease` is `none` * Remove the redundant indentation * Tweak `launch.json` * Add changeset * Add test case and juggle some tests into their appropriate blocks * Add a simpler test case too Co-authored-by: Mateusz Burzyński <[email protected]>
- Loading branch information
Showing
10 changed files
with
251 additions
and
110 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,17 @@ | ||
--- | ||
"@changesets/assemble-release-plan": patch | ||
"@changesets/cli": patch | ||
--- | ||
|
||
author: @Andarist | ||
author: @BPScott | ||
|
||
Fixed the issue that caused transitive dependents of dev dependents to be bumped when a package got bumped and when using `___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH.updateInternalDependents: "always"`. To illustrate this with an example: | ||
|
||
``` | ||
pkg-a - version: 1.0.0 | ||
pkg-b - devDependencies['pkg-a']: 1.0.0 | ||
pkg-c - dependencies['pkg-b']: 1.0.0 | ||
``` | ||
|
||
With a changeset for `pkg-a` the `pkg-c` could have been sometimes incorrectly released. |
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
3 changes: 3 additions & 0 deletions
3
__fixtures__/simplest-transitive-devdependent/.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 |
11 changes: 11 additions & 0 deletions
11
__fixtures__/simplest-transitive-devdependent/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/*" | ||
] | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
__fixtures__/simplest-transitive-devdependent/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,4 @@ | ||
{ | ||
"name": "pkg-a", | ||
"version": "1.0.0" | ||
} |
5 changes: 5 additions & 0 deletions
5
__fixtures__/simplest-transitive-devdependent/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,5 @@ | ||
{ | ||
"name": "pkg-b", | ||
"version": "1.0.0", | ||
"devDependencies": { "pkg-a": "1.0.0" } | ||
} |
5 changes: 5 additions & 0 deletions
5
__fixtures__/simplest-transitive-devdependent/packages/pkg-c/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 @@ | ||
{ | ||
"name": "pkg-c", | ||
"version": "1.0.0", | ||
"dependencies": { "pkg-b": "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
Oops, something went wrong.