@wibus/bump-monorepo

1.0.0-alpha.2 • Public • Published

bump-monorepo

A Command Line Tool to bump monorepo packages.

preview

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

  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.
{
  // ...
  "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✪

Readme

Keywords

Package Sidebar

Install

npm i @wibus/bump-monorepo

Weekly Downloads

1

Version

1.0.0-alpha.2

License

MIT

Unpacked Size

60 kB

Total Files

5

Last publish

Collaborators

  • wibus