1.3.0 • Published 12 months ago
monoversion v1.3.0
Monoversion
A lightweight script for monorepo versioning and publishing library.
Library in monorepo convention
Monoversion will work if you keep the same version of each package in monorepo. It will update all package versions at once.
You also need prettier
as peerdependency to use it.
Installation
yarn add -W -D monoversion
Run script
For these examples we will take yourscope
as a npm scope package.
This will update your package.json version for your packages named @yourscope/yourpackage
and yourscope
in your monorepo.
Major upgrade
yarn monoversion yourscope major
Minor upgrade
yarn monoversion yourscope minor
Patch upgrade
yarn monoversion yourscope patch