diff --git a/packages/animations/BUILD.bazel b/packages/animations/BUILD.bazel index 03e89f808e..1cd92b5aa8 100644 --- a/packages/animations/BUILD.bazel +++ b/packages/animations/BUILD.bazel @@ -27,6 +27,11 @@ ng_package( tags = [ "release-with-framework", ], + # Do not add more to this list. + # Dependencies on the full npm_package cause long re-builds. + visibility = [ + "//packages/compiler/test:__pkg__", + ], deps = [ ":animations", "//packages/animations/browser", diff --git a/packages/bazel/BUILD.bazel b/packages/bazel/BUILD.bazel index 814e722639..03f97b9fe0 100644 --- a/packages/bazel/BUILD.bazel +++ b/packages/bazel/BUILD.bazel @@ -14,6 +14,9 @@ npm_package( "//packages/bazel/docs", ], tags = ["release-with-framework"], + # Do not add more to this list. + # Dependencies on the full npm_package cause long re-builds. + visibility = ["//visibility:private"], deps = [ "//packages/bazel/src/builders", "//packages/bazel/src/ng_package:lib", diff --git a/packages/common/BUILD.bazel b/packages/common/BUILD.bazel index f94a0db7b0..2200e2efd3 100644 --- a/packages/common/BUILD.bazel +++ b/packages/common/BUILD.bazel @@ -30,6 +30,17 @@ ng_package( tags = [ "release-with-framework", ], + # Do not add more to this list. + # Dependencies on the full npm_package cause long re-builds. + visibility = [ + "//packages/bazel/test/ng_package:__pkg__", + "//packages/compiler-cli/test:__pkg__", + "//packages/compiler-cli/test/diagnostics:__pkg__", + "//packages/compiler-cli/test/ngcc:__pkg__", + "//packages/compiler-cli/test/transformers:__pkg__", + "//packages/compiler/test:__pkg__", + "//packages/language-service/test:__pkg__", + ], deps = [ "//packages/common", "//packages/common/http", diff --git a/packages/compiler-cli/BUILD.bazel b/packages/compiler-cli/BUILD.bazel index ad5466d76f..97dfc0ff1f 100644 --- a/packages/compiler-cli/BUILD.bazel +++ b/packages/compiler-cli/BUILD.bazel @@ -46,6 +46,9 @@ npm_package( tags = [ "release-with-framework", ], + # Do not add more to this list. + # Dependencies on the full npm_package cause long re-builds. + visibility = ["//visibility:private"], deps = [ ":compiler-cli", "//packages/compiler-cli/src/ngcc", diff --git a/packages/compiler/BUILD.bazel b/packages/compiler/BUILD.bazel index 72e1f389f9..024344d9a4 100644 --- a/packages/compiler/BUILD.bazel +++ b/packages/compiler/BUILD.bazel @@ -24,6 +24,11 @@ ng_package( tags = [ "release-with-framework", ], + # Do not add more to this list. + # Dependencies on the full npm_package cause long re-builds. + visibility = [ + "//packages/language-service/test:__pkg__", + ], deps = [ ":compiler", "//packages/compiler/testing", diff --git a/packages/core/BUILD.bazel b/packages/core/BUILD.bazel index 5262f2c4d1..d321ada18f 100644 --- a/packages/core/BUILD.bazel +++ b/packages/core/BUILD.bazel @@ -29,6 +29,17 @@ ng_package( tags = [ "release-with-framework", ], + # Do not add more to this list. + # Dependencies on the full npm_package cause long re-builds. + visibility = [ + "//packages/bazel/test/ng_package:__pkg__", + "//packages/compiler-cli/test:__pkg__", + "//packages/compiler-cli/test/diagnostics:__pkg__", + "//packages/compiler-cli/test/ngcc:__pkg__", + "//packages/compiler-cli/test/transformers:__pkg__", + "//packages/compiler/test:__pkg__", + "//packages/language-service/test:__pkg__", + ], deps = [ ":core", "//packages/core/testing", diff --git a/packages/elements/BUILD.bazel b/packages/elements/BUILD.bazel index 6f33808bd9..c3a939128e 100644 --- a/packages/elements/BUILD.bazel +++ b/packages/elements/BUILD.bazel @@ -31,6 +31,9 @@ ng_package( tags = [ "release-with-framework", ], + # Do not add more to this list. + # Dependencies on the full npm_package cause long re-builds. + visibility = ["//visibility:private"], deps = [ ":elements", ], diff --git a/packages/forms/BUILD.bazel b/packages/forms/BUILD.bazel index 2dca4b2d70..05d5a41c6d 100644 --- a/packages/forms/BUILD.bazel +++ b/packages/forms/BUILD.bazel @@ -25,6 +25,12 @@ ng_package( tags = [ "release-with-framework", ], + # Do not add more to this list. + # Dependencies on the full npm_package cause long re-builds. + visibility = [ + "//packages/compiler-cli/test/diagnostics:__pkg__", + "//packages/language-service/test:__pkg__", + ], deps = [ ":forms", ], diff --git a/packages/http/BUILD.bazel b/packages/http/BUILD.bazel index a5f3adbd78..506939a39c 100644 --- a/packages/http/BUILD.bazel +++ b/packages/http/BUILD.bazel @@ -28,6 +28,9 @@ ng_package( tags = [ "release-with-framework", ], + # Do not add more to this list. + # Dependencies on the full npm_package cause long re-builds. + visibility = ["//visibility:private"], deps = [ ":http", "//packages/http/testing", diff --git a/packages/language-service/BUILD.bazel b/packages/language-service/BUILD.bazel index 896280940c..fbf1030277 100644 --- a/packages/language-service/BUILD.bazel +++ b/packages/language-service/BUILD.bazel @@ -27,6 +27,9 @@ npm_package( tags = [ "release-with-framework", ], + # Do not add more to this list. + # Dependencies on the full npm_package cause long re-builds. + visibility = ["//visibility:private"], deps = [ ":language-service", "//packages/language-service/bundles:language-service", diff --git a/packages/platform-browser-dynamic/BUILD.bazel b/packages/platform-browser-dynamic/BUILD.bazel index c69f9323ee..95f39f55fb 100644 --- a/packages/platform-browser-dynamic/BUILD.bazel +++ b/packages/platform-browser-dynamic/BUILD.bazel @@ -30,6 +30,9 @@ ng_package( tags = [ "release-with-framework", ], + # Do not add more to this list. + # Dependencies on the full npm_package cause long re-builds. + visibility = ["//visibility:private"], deps = [ ":platform-browser-dynamic", "//packages/platform-browser-dynamic/testing", diff --git a/packages/platform-browser/BUILD.bazel b/packages/platform-browser/BUILD.bazel index 2bcb9e5738..10b8c56377 100644 --- a/packages/platform-browser/BUILD.bazel +++ b/packages/platform-browser/BUILD.bazel @@ -31,6 +31,11 @@ ng_package( tags = [ "release-with-framework", ], + # Do not add more to this list. + # Dependencies on the full npm_package cause long re-builds. + visibility = [ + "//packages/compiler-cli/test:__pkg__", + ], deps = [ ":platform-browser", "//packages/platform-browser/animations", diff --git a/packages/platform-server/BUILD.bazel b/packages/platform-server/BUILD.bazel index fcf65f54a6..5a3fa5b476 100644 --- a/packages/platform-server/BUILD.bazel +++ b/packages/platform-server/BUILD.bazel @@ -37,6 +37,9 @@ ng_package( tags = [ "release-with-framework", ], + # Do not add more to this list. + # Dependencies on the full npm_package cause long re-builds. + visibility = ["//visibility:private"], deps = [ ":platform-server", "//packages/platform-server/testing", diff --git a/packages/platform-webworker-dynamic/BUILD.bazel b/packages/platform-webworker-dynamic/BUILD.bazel index 8c6ccdff56..dbd16fd4ef 100644 --- a/packages/platform-webworker-dynamic/BUILD.bazel +++ b/packages/platform-webworker-dynamic/BUILD.bazel @@ -27,5 +27,8 @@ ng_package( tags = [ "release-with-framework", ], + # Do not add more to this list. + # Dependencies on the full npm_package cause long re-builds. + visibility = ["//visibility:private"], deps = [":platform-webworker-dynamic"], ) diff --git a/packages/platform-webworker/BUILD.bazel b/packages/platform-webworker/BUILD.bazel index 42ad5ca029..207395b8ae 100644 --- a/packages/platform-webworker/BUILD.bazel +++ b/packages/platform-webworker/BUILD.bazel @@ -27,6 +27,9 @@ ng_package( tags = [ "release-with-framework", ], + # Do not add more to this list. + # Dependencies on the full npm_package cause long re-builds. + visibility = ["//visibility:private"], deps = [ ":platform-webworker", ], diff --git a/packages/router/BUILD.bazel b/packages/router/BUILD.bazel index 9580935f81..9d01a2dd5d 100644 --- a/packages/router/BUILD.bazel +++ b/packages/router/BUILD.bazel @@ -31,6 +31,12 @@ ng_package( tags = [ "release-with-framework", ], + # Do not add more to this list. + # Dependencies on the full npm_package cause long re-builds. + visibility = [ + "//packages/compiler-cli/test:__pkg__", + "//packages/compiler-cli/test/transformers:__pkg__", + ], deps = [ ":router", "//packages/router/testing", diff --git a/packages/service-worker/BUILD.bazel b/packages/service-worker/BUILD.bazel index 338a09267c..1c2876201b 100644 --- a/packages/service-worker/BUILD.bazel +++ b/packages/service-worker/BUILD.bazel @@ -51,6 +51,9 @@ ng_package( tags = [ "release-with-framework", ], + # Do not add more to this list. + # Dependencies on the full npm_package cause long re-builds. + visibility = ["//visibility:private"], deps = [ ":service-worker", "//packages/service-worker/config", diff --git a/packages/upgrade/BUILD.bazel b/packages/upgrade/BUILD.bazel index 8d9fa3c2ed..71318db97e 100644 --- a/packages/upgrade/BUILD.bazel +++ b/packages/upgrade/BUILD.bazel @@ -30,6 +30,9 @@ ng_package( tags = [ "release-with-framework", ], + # Do not add more to this list. + # Dependencies on the full npm_package cause long re-builds. + visibility = ["//visibility:private"], deps = [ ":upgrade", "//packages/upgrade/static",