Lerna version bumps up the version of the the packages inside the repo
See original GitHub issueHi,
I am using the simplest lerna.json file:
{
"npmClient": "npm",
"packages": ["packages/*"],
"version": "independent"
}
When I run lerna version it bumps up the version of all the packages in my repo.
Expected Behavior
If I make changes in 1 package, it should bump up just that.
Current Behavior
It prompts me to choose version for all the packages in the repo.
Steps to Reproduce (for bugs)
lerna version
Your Environment
Executable | Version |
---|---|
lerna --version |
3.19.0 |
npm --version |
6.13.1 |
node --version |
v12.11.1 |
OS | Version |
---|---|
macOS Mojave | 10.14.6 |
Issue Analytics
- State:
- Created 4 years ago
- Reactions:9
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Version and Publish - Lerna
Lerna detects the current packages, identifies the current version and proposes the next one to choose. Note, you can also pass a semver...
Read more >Does Lerna bump dependency versions when releasing new ...
Yes, if you run lerna version major _all packages in your repo will be updated to a new major version and the package.json...
Read more >Automatic versioning in a Lerna monorepo using Github actions
Integrate Lerna in a CI flow to automatically version and publish packages using Github actions. Tagged with lerna, javascript, npm, github.
Read more >JavaScript Monorepos with Lerna - Semaphore CI
In fixed mode, Lerna maintains the same version for every package in the repository. Updated packages will always be bumped to the same ......
Read more >Lerna from a DevOps point of view - LinkedIn
Setting up of a simple monorepo and Lerna; Lerna features; Package ... 2.0.0 ) lerna version major //Create a new minor version bump...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I can’t read minds, so unless there’s a reproduction (or repo) I can look at, I can’t tell you why that’s happening.
Some possible reasons:
As a reminder, “independent” versioning is simply the ability to choose different versions on a package-by-package basis. It does not alter the fundamental change detection algorithm that Lerna uses, and by no means guarantees that a “single” changed package will yield only one versioned package when you run
lerna version
.Hi Folks 👋
You will have seen in our message above that we at Nrwl are working really hard to bring the lerna repo up to date with what matters most to its community in June 2022.
As previously stated in that message, because we have not heard from the original author of this issue within the last 14 days, we are now automatically closing it.
If any users, including the original author, are still impacted by this issue then we still want to hear from you!
All we ask is that you first update to the latest lerna (
5.1.4
at the time of writing) to make sure it is still reproducible, and then fill out one of our new issue templates, providing all the requested details which apply to your situation:https://github.com/lerna/lerna/issues/new/choose
Many thanks again! 🙏
P.S. Over and above getting to grips with the repo, we have also been hard at work launching a new website, resolving all vulnerabilities, merging exciting new features and reigniting community PR contributions! 🚀
You can read our recent blog post to learn more about what we’ve been up to: https://blog.nrwl.io/lerna-5-1-new-website-new-guides-new-lerna-example-repo-distributed-caching-support-and-speed-64d66410bec7