Skip to content

Commit

Permalink
build: vendor yarn using the .yarnrc yarn-path value
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
josephperrott authored and Keen Yee Liau committed Feb 14, 2020
1 parent 3ec40a1 commit efaaaed
Show file tree
Hide file tree
Showing 4 changed files with 147,390 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .yarn/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Yarn Vendoring
We utilize Yarn's `yarn-path` configuration in a shared `.yarnrc` file to enforce
everyone using the same version of Yarn. Yarn checks the `.yarnrc` file to
determine if yarn should delegate the command to a vendored version at the
provided path.

## How to update
To update to the latest version of Yarn as our vendored version:
- Run this command
```sh
yarn policies set-version latest
```
- Remove the previous version
Loading

0 comments on commit efaaaed

Please sign in to comment.