Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wibus-wee/bump-monorepo
A Command Line Tool to bump monorepo packages.
https://github.com/wibus-wee/bump-monorepo
Last synced: about 2 months ago
JSON representation
A Command Line Tool to bump monorepo packages.
- Host: GitHub
- URL: https://github.com/wibus-wee/bump-monorepo
- Owner: wibus-wee
- License: mit
- Created: 2022-12-21T05:26:47.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-31T19:20:45.000Z (5 months ago)
- Last Synced: 2024-11-01T11:42:22.212Z (2 months ago)
- Language: TypeScript
- Homepage:
- Size: 146 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bump-monorepo
A Command Line Tool to bump monorepo packages.
![preview](https://user-images.githubusercontent.com/62133302/208906751-9cb06ce1-7902-4519-9b2a-8759727c077a.gif)
## 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](https://github.com/innei/bump-version)## Usage
```bash
$ npm i -g @wibus/bump-monorepo
```Write your config in `package.json`:
```json5
{
// ...
"bump": {
"message": "release: %s", // commit message
"activePackages": [
"core"
],
"publish": true
}
// ...
}
```Then run:
```bash
$ bump-monorepo
```## Warnings
1. It will use the root `package.json` as the main version. Though you choose to bump a package inside, it will bump the root `package.json` too.
2. If you config `activePackages` in `package.json`, it will only bump the packages in the array.```json5
{
// ...
"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](http://iucky.cn/) · [Blog](https://blog.iucky.cn/) · GitHub [@wibus-wee](https://github.com/wibus-wee/) · Telegram [@wibus✪](https://t.me/wibus_wee)