# @wibus/bump-monorepo

> A Command Line Tool to bump monorepo packages.

Latest version **1.0.0-alpha.2** (published 2022-12-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install @wibus/bump-monorepo
pnpm add @wibus/bump-monorepo
yarn add @wibus/bump-monorepo
bun add @wibus/bump-monorepo
```

Provides the command `bump-monorepo`.

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.0-alpha.2 |
| Published | 2022-12-22 |
| First published | 2022-12-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 58.6 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 5 |
| Author | wibus-wee |
| Maintainers | wibus |
| Keywords | bump |

## Links

- npm: https://www.npmjs.com/package/@wibus/bump-monorepo
- Repository: https://github.com/wibus-wee/bump-monorepo
- Homepage: https://github.com/wibus-wee/bump-monorepo#readme
- Issues: https://github.com/wibus-wee/bump-monorepo/issues
- npm.io page: https://npm.io/package/@wibus/bump-monorepo

## Dependencies (2)

- [zx](https://npm.io/package/zx.md) ^7.1.1
- [conventional-changelog](https://npm.io/package/conventional-changelog.md) ^3.1.25

## Recent versions

- 1.0.0-alpha.2 (latest) — 2022-12-22
- 0.2.1-alpha.1 — 2022-12-21
- 0.2.1-alpha.0 — 2022-12-21
- 0.2.0-alpha.0 — 2022-12-21
- 0.1.4-alpha.5 — 2022-12-21
- 0.1.4-alpha.4 — 2022-12-21
- 0.1.4-alpha.3 — 2022-12-21
- 0.1.4-alpha.2 — 2022-12-21
- 0.1.4-alpha.1 — 2022-12-21
- 0.1.4-alpha.0 — 2022-12-21
- 0.1.3-alpha.0 — 2022-12-21
- 0.1.2-alpha.1 — 2022-12-21
- 0.1.2-alpha.0 — 2022-12-21
- 0.1.1-alpha.0 — 2022-12-21

## 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)

---
_Source: https://npm.io/package/@wibus/bump-monorepo · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
