diff --git a/CHANGELOG.md b/CHANGELOG.md index 71612c1481..052b960d0e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ Please add one entry in this file for each change in Yarn's behavior. Use the sa ## Master +- Adds support for `yarn policies set-version berry` + + [#7041](https://github.com/yarnpkg/yarn/pull/7041/files) - [**Maƫl Nison**](https://twitter.com/arcanis) + - Fix yarn `upgrade --scope` when using exotic (github) dependencies. [#7017](https://github.com/yarnpkg/yarn/pull/7017) - [**Jeff Valore**](https://twitter.com/codingwithspike) diff --git a/src/cli/commands/policies.js b/src/cli/commands/policies.js index 4bd1fb6b5a..298bafba3f 100644 --- a/src/cli/commands/policies.js +++ b/src/cli/commands/policies.js @@ -118,6 +118,9 @@ const {run, setFlags, examples} = buildSubCommands('policies', { if (range === 'nightly' || range === 'nightlies') { bundleUrl = 'https://nightly.yarnpkg.com/latest.js'; bundleVersion = 'nightly'; + } else if (range === 'berry' || range === 'v2' || range === '2') { + bundleUrl = 'https://github.com/yarnpkg/berry/raw/master/packages/berry-cli/bin/berry.js'; + bundleVersion = 'berry'; } else { const releases = await fetchReleases(config, { includePrereleases: allowRc,