Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix handling of --next-version-from-metadata option #398

Merged
merged 2 commits into from
Aug 7, 2021

Conversation

contolini
Copy link
Contributor

The --next-version-from-metadata option correctly reads the repo's metadata and defines config.nextVersion when loadConfig is called.

However, config.nextVersion immediately gets overridden on the next line because argv["next-version"] is always truthy (because it's either provided by the user or defaults to "Unreleased").

Instead, it should check if config.nextVersion exists and if not use argv["next-version"].

Turbo87 and others added 2 commits August 7, 2021 14:24
The `--next-version-from-metadata` option correctly reads the repo's metadata
to define `config.nextVersion` when `loadConfig` is called. However, it is
immediately overridden on the next line by `argv["next-version"]` which
defaults to "Unreleased" and thus is always truthy.
@Turbo87 Turbo87 added the bug label Aug 7, 2021
@Turbo87 Turbo87 merged commit 4f6dff9 into lerna:master Aug 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants