From 752ed8e3ed9ff87275b345306187ebfa5cb2f538 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Nison?= Date: Mon, 18 Feb 2019 17:05:06 +0000 Subject: [PATCH 1/3] Implements support for switching to berry in the cli --- src/cli/commands/policies.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cli/commands/policies.js b/src/cli/commands/policies.js index 4bd1fb6b5a..aafbabb371 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/yarn-berry/raw/master/packages/berry-cli/bin/berry.js'; + bundleVersion = 'berry'; } else { const releases = await fetchReleases(config, { includePrereleases: allowRc, From 4d2632834a20cfa679312af71431c8a01a389d95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Nison?= Date: Mon, 18 Feb 2019 17:30:58 +0000 Subject: [PATCH 2/3] Update CHANGELOG.md --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 764a9c7d8d..469a34f259 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) + - Improves PnP compatibility with Node 6 [#6871](https://github.com/yarnpkg/yarn/pull/6871) - [**Robert Jackson**](https://github.com/rwjblue) From 4ba8a71d66e046e1089e9987d149ed787d1f11c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Nison?= Date: Fri, 22 Feb 2019 20:13:47 +0000 Subject: [PATCH 3/3] Update policies.js --- src/cli/commands/policies.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/commands/policies.js b/src/cli/commands/policies.js index aafbabb371..298bafba3f 100644 --- a/src/cli/commands/policies.js +++ b/src/cli/commands/policies.js @@ -119,7 +119,7 @@ const {run, setFlags, examples} = buildSubCommands('policies', { bundleUrl = 'https://nightly.yarnpkg.com/latest.js'; bundleVersion = 'nightly'; } else if (range === 'berry' || range === 'v2' || range === '2') { - bundleUrl = 'https://github.com/yarnpkg/yarn-berry/raw/master/packages/berry-cli/bin/berry.js'; + bundleUrl = 'https://github.com/yarnpkg/berry/raw/master/packages/berry-cli/bin/berry.js'; bundleVersion = 'berry'; } else { const releases = await fetchReleases(config, {