Raw File
defaults.bzl
"""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")

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)
back to top