Skip to content

Bumping single pkg only with Lerna #3451

Locked Answered by ghiscoding
shay-vanti asked this question in Q&A
Discussion options

You must be logged in to vote

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).

  • version mode will bump all packages to the same version
  • independent mode will prompt you for a new version on every package that it detects a change

in lerna.json you can configure one or the other

independent mode

{ 
  "version": "independent"
}

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 a minor which would be 1.1.0 in this case. I'm not sure what would happen when conventional commit isn't enabled, I always use it.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@shay-vanti
Comment options

@ghiscoding
Comment options

@shay-vanti
Comment options

Answer selected by JamesHenry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants