Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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)