Skip to content

Commit efaaaed

Browse files
josephperrottKeen Yee Liau
authored and
Keen Yee Liau
committed
build: vendor yarn using the .yarnrc yarn-path value
Rather than enforcing yarn versioning using `package.json`'s engines value. We can utilize yarn's `yarn-path` value to ensure that the version of yarn used at execution time is consistent for everyone who uses our repo.
1 parent 3ec40a1 commit efaaaed

File tree

4 files changed

+147390
-1
lines changed

4 files changed

+147390
-1
lines changed

.yarn/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Yarn Vendoring
2+
We utilize Yarn's `yarn-path` configuration in a shared `.yarnrc` file to enforce
3+
everyone using the same version of Yarn. Yarn checks the `.yarnrc` file to
4+
determine if yarn should delegate the command to a vendored version at the
5+
provided path.
6+
7+
## How to update
8+
To update to the latest version of Yarn as our vendored version:
9+
- Run this command
10+
```sh
11+
yarn policies set-version latest
12+
```
13+
- Remove the previous version

0 commit comments

Comments
 (0)