Skip to content

Commit

Permalink
build: do not hide output of bazel yarn install (#18765)
Browse files Browse the repository at this point in the history
By default, the `yarn_install` output is hidden. We should enable
it so that we can see progress, or potential postinstall errors.
  • Loading branch information
devversion authored and mmalerba committed Mar 10, 2020
1 parent d318b27 commit 0e40b8c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,18 @@ node_repositories(

yarn_install(
name = "npm",
# Redirects Yarn `stdout` output to `stderr`. This ensures that stdout is not accidentally
# polluted when Bazel runs Yarn. Workaround until the upstream fix is available:
# https://github.com/bazelbuild/bazel/pull/10611.
args = ["1>&2"],
# We add the postinstall patches file, and ngcc main fields update script here so
# that Yarn will rerun whenever one of these files has been modified.
data = [
"//:tools/postinstall/apply-patches.js",
"//:tools/postinstall/update-ngcc-main-fields.js",
],
package_json = "//:package.json",
quiet = False,
yarn_lock = "//:yarn.lock",
)

Expand Down

0 comments on commit 0e40b8c

Please sign in to comment.