From 22758aec571e8c24ebf44270a277056b2b72ae22 Mon Sep 17 00:00:00 2001 From: Bram Gotink Date: Sat, 20 Apr 2024 13:57:49 +0200 Subject: [PATCH] fix(version) use correct counter placeholder in documentation (#6241) **What's the problem this PR addresses?** The documentation mentions `%d` but the code uses `%n`. https://github.com/yarnpkg/berry/blob/c64644ae88ba42090ab9b87da0b09601d4218b0c/packages/plugin-version/sources/commands/version/apply.ts#L76-L78 **How did you fix it?** Update the code **Checklist** - [x] I have read the [Contributing Guide](https://yarnpkg.com/advanced/contributing). - [x] I have set the packages that need to be released for my changes to be effective. - [x] I will check that all automated PR checks pass before the PR gets reviewed. --- .yarn/versions/501b46bd.yml | 23 +++++++++++++++++++ .../sources/commands/version/apply.ts | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 .yarn/versions/501b46bd.yml diff --git a/.yarn/versions/501b46bd.yml b/.yarn/versions/501b46bd.yml new file mode 100644 index 000000000000..2faf671b463b --- /dev/null +++ b/.yarn/versions/501b46bd.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/apply.ts b/packages/plugin-version/sources/commands/version/apply.ts index 5dd52f71d7cc..d78cd292e688 100644 --- a/packages/plugin-version/sources/commands/version/apply.ts +++ b/packages/plugin-version/sources/commands/version/apply.ts @@ -17,7 +17,7 @@ export default class VersionApplyCommand extends BaseCommand { 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. + Note that if \`--prerelease\` is set, the given prerelease identifier (by default \`rc.%n\`) 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: