Hi,
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.
If I make changes in 1 package, it should bump up just that.
It prompts me to choose version for all the packages in the repo.
lerna version
| Executable | Version |
| ---: | :--- |
| lerna --version | 3.19.0 |
| npm --version | 6.13.1 |
| node --version | v12.11.1 |
| OS | Version |
| --- | --- |
| macOS Mojave | 10.14.6 |
any update on this issue?
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.
@Donato-EF if you're anything like me, it's because it was your first time really trying to use Lerna, and you haven't run lerna version on this repo before. Just pick something. The next time you try this, it'll work like you think.
Most helpful comment
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.