tools/workspace-plugin/src/generators/version-bump/README.md
Workspace generator that bumps packages. The allowed package bumps the same ones available from the official NPM semver package and consist of:
Prerelease tags can also be configured.
The generator also bumps the versions in any dependent packages.
<!-- toc --> <!-- tocstop -->9.xyarn nx g @fluentui/workspace-plugin:version-bump ...
Show what will be generated without writing to disk:
yarn nx g @fluentui/workspace-plugin:version-bump --dry-run
Bump @fluentui/[email protected] to beta
yarn nx g @fluentui/workspace-plugin:version-bump --name=example --bumpType prerelease --prereleaseTag beta
Bump all vNext packages from alpha to beta
yarn nx g @fluentui/workspace-plugin:version-bump --all --bumpType prerelease --prereleaseTag beta
Bump all vNext packages from beta (9.0.0-beta) to full release. The actual bumptype is irrelevant.
yarn nx g @fluentui/workspace-plugin:version-bump --all --bumpType minor
Bump all vNext packages for a nightly release (0.0.0-nightly).
yarn nx g @fluentui/workspace-plugin:version-bump --all --bumpType nightly --prereleaseTag nightly
nameType: string
Project name (without @npmScope prefix - e.g. <project-name>)
NOTE: will trigger CLI prompt if you didn't provide this option
allType: boolean
Run batch migration on all vNext packages with the tag platform:web in nx.json
excludeType: string
Comma-delimited list of packages that should not be bumped when using the --all flag
bumpTypeType: string
Bump type that can be any allowed in the official NPM semver package
prereleaseTagType: string
For example alpha or beta Only used when bumping prerelease versions.