From 83dc3c0ee0d497a0bcd2db8f4fd35074310dc5ca Mon Sep 17 00:00:00 2001 From: Greg Magolan Date: Mon, 22 Oct 2018 13:04:01 -0700 Subject: [PATCH] build: add config_env_vars = ["compile"] to ngc-wrapped (#26471) PR Close #26471 --- BUILD.bazel | 1 + packages/bazel/src/ngc-wrapped/BUILD.bazel | 1 + scripts/build-packages-dist.sh | 3 --- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/BUILD.bazel b/BUILD.bazel index 2b5370962f..d46264d77e 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -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, diff --git a/packages/bazel/src/ngc-wrapped/BUILD.bazel b/packages/bazel/src/ngc-wrapped/BUILD.bazel index cc7004b542..f338fd272d 100644 --- a/packages/bazel/src/ngc-wrapped/BUILD.bazel +++ b/packages/bazel/src/ngc-wrapped/BUILD.bazel @@ -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", diff --git a/scripts/build-packages-dist.sh b/scripts/build-packages-dist.sh index c284eb3283..5f6642af3e 100755 --- a/scripts/build-packages-dist.sh +++ b/scripts/build-packages-dist.sh @@ -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" -