@wibus/bump-monorepo
v1.0.0-alpha.2
Published
A Command Line Tool to bump monorepo packages.
Downloads
2
Readme
bump-monorepo
A Command Line Tool to bump monorepo packages.
Features
- [x] Bump packages in monorepo
- [x] Commit and push
- [x] Pre-commit hook
- [x] After-push hook
- [x] Alpha, Beta, Canary, RC, Patch, Minor, Major, Custom version
- [x] Custom commit message
This project is quite restrictive because it was developed for proprietary repositories. If you have any suggestions, please feel free to open an issue.
The release in this repository is not generated by this tool. It is generated by @innei/bump-version
Usage
$ npm i -g @wibus/bump-monorepo
Write your config in package.json
:
{
// ...
"bump": {
"message": "release: %s", // commit message
"activePackages": [
"core"
],
"publish": true
}
// ...
}
Then run:
$ bump-monorepo
Warnings
- It will use the root
package.json
as the main version. Though you choose to bump a package inside, it will bump the rootpackage.json
too. - If you config
activePackages
inpackage.json
, it will only bump the packages in the array.
{
// ...
"bump": {
"activePackages": ["packages/a", "packages/b"]
}
// ...
}
warning: Once you do this, you must continue to use this config. Otherwise, it may damage your repository.
Author
bump-monorepo © Wibus, Released under MIT. Created on Dec 21, 2022
Personal Website · Blog · GitHub @wibus-wee · Telegram @wibus✪