build: use vendored yarn under Bazel (#28839)

PR Close #28839
This commit is contained in:
Alex Eagle 2019-02-20 07:07:36 -08:00 committed by Igor Minar
parent 9cecb0b5d2
commit 1832e0f293
5 changed files with 3 additions and 3 deletions

View File

@ -65,7 +65,7 @@ setPublicVar SAUCE_READY_FILE_TIMEOUT 120
####################################################################################################
# Define our own yarn command for CircleCI.
####################################################################################################
echo "function yarn () { /usr/bin/env node $projectDir/third_party/github.com/yarnpkg/yarn/releases/yarn-1.13.0.js \"\$@\"; }" >> $BASH_ENV;
echo "function yarn () { /usr/bin/env node $projectDir/third_party/github.com/yarnpkg/yarn/releases/download/v1.13.0/bin/yarn.js \"\$@\"; }" >> $BASH_ENV;
echo "export -f yarn;" >> $BASH_ENV;

View File

@ -48,7 +48,7 @@ node_repositories(
node_version = "10.9.0",
package_json = ["//:package.json"],
preserve_symlinks = True,
yarn_version = "1.12.1",
vendored_yarn = "@angular//third_party/github.com/yarnpkg/yarn/releases/download:v1.13.0",
)
# Setup the angular toolchain which installs npm dependencies into @ngdeps

View File

@ -1,2 +1,2 @@
# Fetched from https://github.com/yarnpkg/yarn/releases/download/v1.13.0/yarn-1.13.0.js
# Fetched from https://github.com/yarnpkg/yarn/releases/download/v1.13.0/yarn-v1.13.0.tar.gz
licenses(["notice"])