build: add config_env_vars = ["compile"] to ngc-wrapped (#26471)

PR Close #26471
This commit is contained in:
Greg Magolan 2018-10-22 13:04:01 -07:00 committed by Alex Rickabaugh
parent 5952775a03
commit 83dc3c0ee0
3 changed files with 2 additions and 3 deletions

View File

@ -50,6 +50,7 @@ load("@build_bazel_rules_nodejs//:defs.bzl", "nodejs_binary")
# set which is required to support the call to `global.gc()`.
nodejs_binary(
name = "@angular/bazel/ngc-wrapped",
configuration_env_vars = ["compile"],
data = ["@npm//@angular/bazel"],
entry_point = "@angular/bazel/src/ngc-wrapped/index.js",
install_source_map_support = False,

View File

@ -29,6 +29,7 @@ ts_library(
nodejs_binary(
name = "ngc-wrapped",
configuration_env_vars = ["compile"],
data = [
":ngc_lib",
"@build_bazel_rules_typescript//third_party/github.com/bazelbuild/bazel/src/main/protobuf:worker_protocol.proto",

View File

@ -61,7 +61,4 @@ buildTargetPackages "$BAZEL_TARGETS" "dist/packages-dist" "legacy" "Production"
|| "${CIRCLE_PROJECT_REPONAME-}" != "angular"
]] && exit 0
# A clean is needed since build artifacts from previous build can break the following build
bazel clean
buildTargetPackages "$BAZEL_TARGETS" "dist/packages-dist-ivy-local" "local" "Ivy AOT"