diff --git a/.yarn/versions/a6f5e4dd.yml b/.yarn/versions/a6f5e4dd.yml new file mode 100644 index 000000000000..2faf671b463b --- /dev/null +++ b/.yarn/versions/a6f5e4dd.yml @@ -0,0 +1,23 @@ +releases: + "@yarnpkg/cli": patch + "@yarnpkg/plugin-version": patch + +declined: + - "@yarnpkg/plugin-compat" + - "@yarnpkg/plugin-constraints" + - "@yarnpkg/plugin-dlx" + - "@yarnpkg/plugin-essentials" + - "@yarnpkg/plugin-init" + - "@yarnpkg/plugin-interactive-tools" + - "@yarnpkg/plugin-nm" + - "@yarnpkg/plugin-npm-cli" + - "@yarnpkg/plugin-pack" + - "@yarnpkg/plugin-patch" + - "@yarnpkg/plugin-pnp" + - "@yarnpkg/plugin-pnpm" + - "@yarnpkg/plugin-stage" + - "@yarnpkg/plugin-typescript" + - "@yarnpkg/plugin-workspace-tools" + - "@yarnpkg/builder" + - "@yarnpkg/core" + - "@yarnpkg/doctor" diff --git a/packages/plugin-version/sources/commands/version.ts b/packages/plugin-version/sources/commands/version.ts index db8e138af0eb..c27251234c85 100644 --- a/packages/plugin-version/sources/commands/version.ts +++ b/packages/plugin-version/sources/commands/version.ts @@ -34,6 +34,9 @@ export default class VersionCommand extends BaseCommand { ], [ `Prepare the version to be bumped to the next major`, `yarn version major --deferred`, + ], [ + `Immediately bump to the specified version`, + `yarn version 1.2.3-alpha.1`, ]], }); @@ -45,7 +48,9 @@ export default class VersionCommand extends BaseCommand { description: `Bump the version immediately`, }); - strategy = Option.String(); + strategy = Option.String({ + name: `strategy|semver`, + }); async execute() { const configuration = await Configuration.find(this.context.cwd, this.context.plugins);