6

When I call lerna version 1.0.0 it bumps the versions to 1.0.0 for every package that has changed in the /packages dir.

Additionally, I'd like to bump the version of the root package.json. I'm basically trying to do the following in a single commit:

lerna version --no-git-tag-version --yes 1.0.0 && npm version 1.0.0

Any tips?

Matt K
  • 4,813
  • 4
  • 22
  • 35
  • 1
    I've also the same issue, all `package.json`s of the project are bumped except the one in the root? any news about it? – axel Mar 24 '20 at 08:45

1 Answers1

0

Try the following, It bumps the version of the root package.json including package.json resides in /packages dir.

npm version 1.0.0 --no-git-tag-version && npx lerna version 1.0.0 --no-push --no-git-tag-version --yes

if lerna is installed

npm version 1.0.0 --no-git-tag-version && lerna version 1.0.0 --no-push --no-git-tag-version --yes

Sanjay
  • 1