refactor(bazel): convert most ts_library to ng_module (#22176)

This is necessary so we can produce ng metadata for our packages that are published as libraries

PR Close #22176
This commit is contained in:
Alex Eagle
2018-02-13 08:19:33 -08:00
committed by Victor Berchet
parent 6a57264d38
commit 6597616aac
28 changed files with 56 additions and 50 deletions

View File

@ -7,6 +7,6 @@
Users should not load files under "/src"
"""
load("//src:ng_module.bzl", _ng_module = "ng_module")
load("//packages/bazel/src:ng_module.bzl", _ng_module = "ng_module")
ng_module = _ng_module

View File

@ -12,8 +12,8 @@ ts_library(
visibility = ["//packages/bazel/test/ngc-wrapped:__subpackages__"],
deps = [
# BEGIN-INTERNAL
# Only needed when compiling Angular from sources.
# Users with an npm depnedency will get this dependency from node_modules.
# Only needed when compiling within the Angular repo.
# Users will get this dependency from node_modules.
"//packages/compiler-cli",
# END-INTERNAL
"@build_bazel_rules_typescript//internal/tsc_wrapped",

View File

@ -10,12 +10,8 @@ ts_library(
],
tsconfig = ":tsconfig.json",
deps = [
# BEGIN-INTERNAL
# Only needed when compiling within the Angular repo.
# Users will get this dependency from node_modules.
"//packages/compiler-cli",
# END-INTERNAL
"//packages/bazel/src/ngc-wrapped:ngc_lib",
"//packages/compiler-cli",
],
)