Questions about prerelease versions and independent mode
See original GitHub issueHi,
this project looks very interesting and I’m evaluating if I can try it out to some of our monorepositories.
I have two questions first, which I couldn’t find any answer in the docs.
-
The prerelease feature changes the version by appending the
tag
name. Is there a way to specify the npm dist-tag but keep the version as-is? In our case when we create a release we publish tonext
dist-tag by default. Then when we want to promote the version tolatest
, we do so by running a script manually that assigns the version tolatest
. However, the version does not change fromnext
tolatest
, only the dist-tag. We also have canary releases, in which case the current implementation of a prerelease would work, as the version should change as well. -
Is “independent” mode the only available mode? In Lerna there are 2 modes: locked and independent. In our case we use locked mode. I don’t see a big issue if we change to independent mode as a result of moving to changesets. I just want to understand if this is the only way or if there is another “hidden” option or something.
Thanks in advance, any feedback would be appreciated.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:10 (9 by maintainers)
Top GitHub Comments
I think the same happens for public packages. Updating dev dep shouldn’t affect the production release, that’s why dev deps do not bump versions.
Currently, it is not possible to bump the version without also changing the changelog (at least I don’t think it is possible). A (somewhat) related comment/discussion about versioning private packages: https://github.com/atlassian/changesets/issues/339#issuecomment-619334412
I guess this can be closed now. I’ve been using changesets across different repos for some time now and pretty much are use cases / requirements have been covered now. We’re very happy with that! Thanks 🙏