-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
Bug: Fails when inital version is 0.0.1 #102
Comments
Hi @ntziolis, thank you for spotting this! Initially we had an --initial-release flag but we removed it as we wanted to make it transparent for the user. It seems to be weak to base our assumption on what's Nx generate (0.0.1), so I would suggest to update the
This would also fix users that started to release using another tool with different tag format (without tag prefix for example). |
That would be perfect as this doesn't require the user to intervene manually in majority of cases. |
Co-authored-by: Younes Jaaidi <yjaaidi@gmail.com>
Co-authored-by: Younes Jaaidi <yjaaidi@gmail.com>
When creating a new angular lib via nx the default initial version number of the package is
0.0.1
instead of0.0.0
. This causes the plugin to fail when executingnx run mylib:version
.When manually setting the version of to 0.0.0 the command starts working as expected.
Root cause is the following line:
semver/packages/semver/src/builders/version/utils/try-bump.ts
Line 35 in 8eada0d
Suggestion:
since: initial || version !== '0.0.0' ? `${tagPrefix}${version}` : null,
The text was updated successfully, but these errors were encountered: