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:

committed by
Victor Berchet

parent
6a57264d38
commit
6597616aac
@ -1,6 +1,6 @@
|
||||
"""Re-export of some bazel rules with repository-wide defaults."""
|
||||
load("@build_bazel_rules_typescript//:defs.bzl", _ts_library = "ts_library")
|
||||
load("//packages/bazel/src:ng_module.bzl", _ng_module = "ng_module")
|
||||
load("//packages/bazel:index.bzl", _ng_module = "ng_module")
|
||||
|
||||
DEFAULT_TSCONFIG = "//packages:tsconfig-build.json"
|
||||
|
||||
@ -9,7 +9,7 @@ def ts_library(tsconfig = None, **kwargs):
|
||||
tsconfig = DEFAULT_TSCONFIG
|
||||
_ts_library(tsconfig = tsconfig, **kwargs)
|
||||
|
||||
def ng_module(tsconfig = None, **kwargs):
|
||||
def ng_module(name, tsconfig = None, **kwargs):
|
||||
if not tsconfig:
|
||||
tsconfig = DEFAULT_TSCONFIG
|
||||
_ng_module(tsconfig = tsconfig, **kwargs)
|
||||
_ng_module(name = name, tsconfig = tsconfig, **kwargs)
|
||||
|
Reference in New Issue
Block a user