mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
build: do not run bazel through yarn and nodejs
We don't want to run Bazel through Yarn or NodeJS as that could mean that Bazel runs with limited memory.
This commit is contained in:
committed by
Jeremy Elbourn
parent
a2e04317b1
commit
39818135d3
Executable
+10
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
bazelBin=$(node -p "require('@bazel/bazel').getNativeBinary()")
|
||||
|
||||
# Provide the bazel binary globally. We don't want to access the binary
|
||||
# through Node as it could result in limited memory.
|
||||
sudo chmod a+x ${bazelBin}
|
||||
sudo ln -fs ${bazelBin} /usr/local/bin/bazel
|
||||
@@ -24,7 +24,7 @@ docsDistPath="${projectPath}/dist/docs"
|
||||
docsContentPath="${projectPath}/tmp/material2-docs-content"
|
||||
|
||||
# Path to the release output of the Bazel "@angular/material-examples" NPM package.
|
||||
examplesPackagePath="$(yarn -s bazel info bazel-bin)/src/material-examples/npm_package"
|
||||
examplesPackagePath="$(bazel info bazel-bin)/src/material-examples/npm_package"
|
||||
|
||||
# Git clone URL for the material2-docs-content repository.
|
||||
docsContentRepoUrl="https://github.com/angular/material2-docs-content"
|
||||
|
||||
Reference in New Issue
Block a user