Bump the version of multiple package.json and package-lock.json files with one command
npm install bump-package-versionsBump the version of multiple package.json and package-lock.json files at the same time
```
npm i --save-dev bump-package-versions
``
npx bump-package-versions --part=patch --strategy=highest ./package.json ./client/package.json ./server/package.json
result:
* ./package.json 1.0.0 => 5.2.12.3.4
* ./client/package.json => 5.2.15.2.0
* ./server/package.json => 5.2.1
``
npx bump-package-versions --part=minor --strategy=separate ./package.json ./client/package.json ./server/package.json
result:
* ./package.json 1.0.0 => 1.1.02.3.4
* ./client/package.json => 2.4.05.2.0
* ./server/package.json => 5.3.0`
-p, --part Which part of the version do you want to bump. [choices: "major", "minor", "patch"] [default: "patch"]
-s, --strategy Which strategy to use for determining the version. [choices: "highest", "separate"] [default: "separate"]
"highest"
Will find the highest version in all the files, and bump that version, then apply that version to all files.
"separate"
Will bump the version of each file separately.
-h, --help Show help [boolean]
--version Show version number [boolean]