Skip to content

Commit

Permalink
Implements support for switching to berry in the cli (#7041)
Browse files Browse the repository at this point in the history
* Implements support for switching to berry in the cli

* Update CHANGELOG.md

* Update policies.js
  • Loading branch information
arcanis committed Feb 22, 2019
1 parent c837fef commit ea81393
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Expand Up @@ -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)
Expand Down
3 changes: 3 additions & 0 deletions src/cli/commands/policies.js
Expand Up @@ -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,
Expand Down

0 comments on commit ea81393

Please sign in to comment.