Bumping single pkg only with Lerna #3451
-
Hey all. I've been using Lerna to create a monorepo with 2 npm packages; lets call them A, B. Now, when I commit a change on package A, and then publish, Lerna bumps both A and B. I feel like I missed something in the docs. Can you suggest how should I only bump A or B? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Lerna has 2 version modes and that used to be mentioned in the readme but it was removed (I guess they now mention it on their website).
in independent mode{
"version": "independent"
} version mode will bump to the next conventional version found when
|
Beta Was this translation helpful? Give feedback.
Lerna has 2 version modes and that used to be mentioned in the readme but it was removed (I guess they now mention it on their website).
in
lerna.json
you can configure one or the otherindependent mode
version mode will bump to the next conventional version found when
conventionalCommits
is enabled, for example if a commit with the word "feat" is found, it will bump all packages to aminor
which would be1.1.0
in this case. I'm not sure what would happen when conventional commit isn't enabled, I always use it.