Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into 1.17-stable
Browse files Browse the repository at this point in the history
  • Loading branch information
arcanis committed Jun 21, 2019
2 parents 6b44fb1 + 0171368 commit 30a5ce3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ Please add one entry in this file for each change in Yarn's behavior. Use the sa

## Master

- Adds support for reading `yarnPath` from v2-produced `.yarnrc.yml` files.

[#7350](https://github.com/yarnpkg/yarn/pull/7350) - [**Maël Nison**](https://twitter.com/arcanis)

## 1.17.0

- Adds prereleases flags and prerelease identifier to `yarn version`.

[#7336](https://github.com/yarnpkg/yarn/pull/7336) - [**Daniel Seijo**](https://github.com/daniseijo)
Expand All @@ -19,7 +25,7 @@ Please add one entry in this file for each change in Yarn's behavior. Use the sa
- Yarn will tolerate Yaml at parse time. Full support isn't ready yet and will only come at the next major.

[#7300](https://github.com/yarnpkg/yarn/pull/7300) - [**Maël Nison**](https://twitter.com/arcanis)

- Fixes a bug when using the `link:` protocol with a folder that doesn't contain a `package.json`

[#7337](https://github.com/yarnpkg/yarn/pull/7337) - [**Maël Nison**](https://twitter.com/arcanis)
Expand Down
2 changes: 1 addition & 1 deletion src/rc.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function loadRcFile(fileText: string, filePath: string): {[key: string]: string}
let {object: values} = parse(fileText, 'yarnrc');

if (filePath.match(/\.yml$/)) {
values = {yarnPath: values.yarnPath};
values = {'yarn-path': values.yarnPath};
}

// some keys reference directories so keep their relativity
Expand Down
2 changes: 1 addition & 1 deletion src/util/rc.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ function getRcPaths(name: string, cwd: string): Array<string> {
}

function unshiftConfigPath(...segments) {
configPaths.unshift(path.join(...segments));
if (segments[segments.length - 1] === `.${name}rc`) {
configPaths.unshift(path.join(...segments.slice(0, -1), `.${name}rc.yml`));
}
configPaths.unshift(path.join(...segments));
}

if (!isWin) {
Expand Down

0 comments on commit 30a5ce3

Please sign in to comment.