yarn version apply
Apply all the deferred version bumps at once.
Usage
$> yarn version apply
Examples
Apply the version change to the local workspace :
yarn version apply
Apply the version change to all the workspaces in the local workspace :
yarn version apply --all
Options
Definition | Description |
---|---|
| Apply the deferred version changes on all workspaces |
| Print the versions without actually generating the package archive |
| Add a prerelease identifier to new versions |
| Release the transitive workspaces as well |
| Format the output as an NDJSON stream |
Details
This command will apply the deferred version changes and remove their definitions from the repository.
Note that if --prerelease
is set, the given prerelease identifier (by default
rc.%d
) will be used on all new versions and the version definitions will be
kept as-is.
By default only the current workspace will be bumped, but you can configure this behavior by using one of:
--recursive
to also apply the version bump on its dependencies--all
to apply the version bump on all packages in the repository
Note that this command will also update the workspace:
references across all
your local workspaces, thus ensuring that they keep referring to the same
workspaces even after the version bump.