forked from angular/angular
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: vendor yarn using the .yarnrc yarn-path value (angular#34902)
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 is the first step in this wider vendoring process. We will use this same vendoring mechanism for CI after bazel-contrib/rules_nodejs#1569 lands PR Close angular#34902
1 parent
8c11e45
commit b41ed88
Showing
3 changed files
with
147,333 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. | ||
# yarn lockfile v1 | ||
|
||
|
||
yarn-path ".yarn/releases/yarn-1.21.1.js" |