Skip to content

Commit 30a5ce3

Browse files
committed
Merge remote-tracking branch 'origin/master' into 1.17-stable
2 parents 6b44fb1 + 0171368 commit 30a5ce3

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ Please add one entry in this file for each change in Yarn's behavior. Use the sa
44

55
## Master
66

7+
- Adds support for reading `yarnPath` from v2-produced `.yarnrc.yml` files.
8+
9+
[#7350](https://github.com/yarnpkg/yarn/pull/7350) - [**Maël Nison**](https://twitter.com/arcanis)
10+
11+
## 1.17.0
12+
713
- Adds prereleases flags and prerelease identifier to `yarn version`.
814

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

2127
[#7300](https://github.com/yarnpkg/yarn/pull/7300) - [**Maël Nison**](https://twitter.com/arcanis)
22-
28+
2329
- Fixes a bug when using the `link:` protocol with a folder that doesn't contain a `package.json`
2430

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

src/rc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function loadRcFile(fileText: string, filePath: string): {[key: string]: string}
4646
let {object: values} = parse(fileText, 'yarnrc');
4747

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

5252
// some keys reference directories so keep their relativity

src/util/rc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ function getRcPaths(name: string, cwd: string): Array<string> {
1919
}
2020

2121
function unshiftConfigPath(...segments) {
22-
configPaths.unshift(path.join(...segments));
2322
if (segments[segments.length - 1] === `.${name}rc`) {
2423
configPaths.unshift(path.join(...segments.slice(0, -1), `.${name}rc.yml`));
2524
}
25+
configPaths.unshift(path.join(...segments));
2626
}
2727

2828
if (!isWin) {

0 commit comments

Comments
 (0)