Skip to content

Versioning

Use this command to update the version of packages in the monorepo. You can update all packages or specific ones.

Command

Update the version of all packages in the monorepo at once.

bash
monopkg version [version]
bash
bun x monopkg version [version]
bash
npx monopkg version [version]
bash
yarn dlx monopkg version [version]

Options

  • -f, --filter - Include specific packages.
  • -e, --exclude - Exclude specific packages.
  • -w, --workspace - Root workspace of the packages.

Examples

Patch version all packages

bash
monopkg version patch
bash
bun x monopkg version patch
bash
npx monopkg version patch
bash
yarn dlx monopkg version patch

Minor version all packages

bash
monopkg version minor
bash
bun x monopkg version minor
bash
npx monopkg version minor
bash
yarn dlx monopkg version minor

Major version all packages

bash
monopkg version major
bash
bun x monopkg version major
bash
npx monopkg version major
bash
yarn dlx monopkg version major

Patch version specific packages

bash
monopkg version patch -f package-a package-b
bash
bun x monopkg version patch -f package-a package-b
bash
npx monopkg version patch -f package-a package-b
bash
yarn dlx monopkg version patch -f package-a package-b

Set specific version for all packages

bash
monopkg version 1.2.3
bash
bun x monopkg version 1.2.3
bash
npx monopkg version 1.2.3
bash
yarn dlx monopkg version 1.2.3

Released under the MIT License.