Update script to bump versions of packages #968
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This updates the script to bump versions of packages to have a UI for selecting how to bump the version for each package (e.g. alpha, patch, minor, major, etc.). It starts a simple web server and triggers your browser to open to a page listing all of the changed packages.
It then propagates these version selections as necessary to dependent packages. Specifically, if the version is a prerelease, then it propagates the version bump upwards to anything that has a dependency on the package being published. This is so that the dependent packages get the updated pinned version. Additionally, we also propagate the version bump downward to all packages that the package depends on, to ensure that all dependencies are published and up to date.
For now, the rest of the script works as it did, with a prompt for the new versions in the terminal. Eventually I'd like to make that part of the web UI as well.