15 lines
529 B
Python
15 lines
529 B
Python
"""Re-export of some bazel rules with repository-wide defaults."""
|
|
load("@build_bazel_rules_typescript//:defs.bzl", _ts_library = "ts_library")
|
|
load("@angular//:index.bzl", _ng_module = "ng_module")
|
|
|
|
DEFAULT_TSCONFIG = "//packages:tsconfig-build.json"
|
|
|
|
def ts_library(tsconfig = None, **kwargs):
|
|
if not tsconfig:
|
|
tsconfig = DEFAULT_TSCONFIG
|
|
_ts_library(tsconfig = tsconfig, **kwargs)
|
|
|
|
def ng_module(tsconfig = None, **kwargs):
|
|
if not tsconfig:
|
|
tsconfig = DEFAULT_TSCONFIG
|
|
_ng_module(tsconfig = tsconfig, **kwargs) |