mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-15 18:13:38 +08:00
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:
parent
0b63ae68a5
commit
e2f67ccdf4
13
.yarn/README.md
Normal file
13
.yarn/README.md
Normal 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
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
6
.yarnrc
Normal 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"
|
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user