Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new config option for always upgrading internal dependents (#542)
* Add new config option for always upgrading internal dependents * Fixed tests * Add a config test for updateInternalDependents * Fixed apply-release-plan tests * Fixed config test * Mock git hash for version tests * Refactor updateInternalDependents to an enum * Move updateInternalDependents to experimental options * Add a note about updateInternalDependencies * fix stuff * Enabled updateInternalDependents: always for the repo itself * add cahngesets * Update .changeset/light-buttons-chew.md
- Loading branch information
Showing
15 changed files
with
378 additions
and
171 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
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/cli": minor | ||
"@changesets/config": minor | ||
"@changesets/types": major | ||
--- | ||
|
||
A new `updateInternalDependents` experimental option has been added. It can be used to add dependent packages to the release (if they are not already a part of it) with patch bumps. To use it you can add this to your config: | ||
|
||
```json | ||
{ | ||
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": { | ||
"updateInternalDependents": "always" | ||
} | ||
} | ||
``` | ||
|
||
This option accepts two values - `"always"` and `"out-of-range"` (the latter matches the current default behavior). |
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 @@ | ||
--- | ||
"@changesets/apply-release-plan": major | ||
"@changesets/assemble-release-plan": major | ||
"@changesets/get-release-plan": major | ||
--- | ||
|
||
The accepted `Config` type has been changed - a new experimental option (`updateInternalDependents`) was added to it. |
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
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.