Skip to content

package.json version gets reset to 0.0.0 when migrating an existing project #3193

Answered by mrgrain
janwvjaarsveld asked this question in Q&A
Discussion options

You must be logged in to vote

Also with regards to #2429, would the version insideaddVersion() need to be manually bumped every time you want an higher version?

Correct. If you want to manually manage the version, you will have to bump it manually. The automatic versioning works with 0.0.0 only. But since your concern is about migration, you might not want this anyway. Instead you can let it reset the version in package.json to 0.0.0 and follow How can I force a different version? to make sure projen does pickup the final non-projen version correctly.

And do I understand the following line correctly To convey this message, the version in package.json is kept at 0.0.0., that the version in package.json will then alw…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@janwvjaarsveld
Comment options

@janwvjaarsveld
Comment options

@mrgrain
Comment options

Answer selected by janwvjaarsveld
@mrgrain
Comment options

@janwvjaarsveld
Comment options

@adamelkhayyat
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #3192 on December 21, 2023 11:17.