From 067cbe012e695609426a9f26d12140a7d0ac1e9e Mon Sep 17 00:00:00 2001 From: Edvard Chen Date: Mon, 16 May 2022 11:38:15 +0800 Subject: [PATCH] fix(cli): correct the cli's dev version to match semver spec --- .yarn/versions/fecc5928.yml | 2 ++ packages/yarnpkg-cli/sources/boot-cli-dev.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 .yarn/versions/fecc5928.yml diff --git a/.yarn/versions/fecc5928.yml b/.yarn/versions/fecc5928.yml new file mode 100644 index 000000000000..fe0386dfdc6a --- /dev/null +++ b/.yarn/versions/fecc5928.yml @@ -0,0 +1,2 @@ +declined: + - "@yarnpkg/cli" diff --git a/packages/yarnpkg-cli/sources/boot-cli-dev.js b/packages/yarnpkg-cli/sources/boot-cli-dev.js index 83e4a28c8c5c..97169a1eb501 100644 --- a/packages/yarnpkg-cli/sources/boot-cli-dev.js +++ b/packages/yarnpkg-cli/sources/boot-cli-dev.js @@ -9,7 +9,7 @@ if (fs.existsSync(pnpFile)) require(`@yarnpkg/monorepo/scripts/setup-ts-execution`); // Exposes the CLI version as like for the bundle -global.YARN_VERSION = `${require(`@yarnpkg/cli/package.json`).version}.dev`; +global.YARN_VERSION = `${require(`@yarnpkg/cli/package.json`).version}-dev`; // Inject the plugins in the runtime. With Webpack that would be through // val-loader which would execute pluginConfiguration.raw.js, so in Node