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.
This commit is contained in:
Joey Perrott 2020-02-13 14:23:38 -08:00 committed by Keen Yee Liau
parent 0b63ae68a5
commit e2f67ccdf4
4 changed files with 147390 additions and 1 deletions

13
.yarn/README.md Normal file
View File

@ -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

147370
.yarn/releases/yarn-1.22.0.js vendored Executable file

File diff suppressed because one or more lines are too long

6
.yarnrc Normal file
View File

@ -0,0 +1,6 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
lastUpdateCheck 1581546341989
yarn-path ".yarn/releases/yarn-1.22.0.js"

View File

@ -46,7 +46,7 @@
},
"engines": {
"node": ">=10.13.0 <13.0.0",
"yarn": ">=1.17.3 <2.0.0"
"yarn": ">=1.0.0"
},
"author": "Angular Authors",
"license": "MIT",