Files
angular/devtools/tools/typescript.bzl
T
Joey Perrott 8f94101c24 build: rename devtools ts_library to ts_project (#61317)
Rename ts_library to ts_project throughout devtools

PR Close #61317
2025-05-14 08:51:21 -07:00

22 lines
529 B
Python

"""Helper macros for compiling typescript with consistent config"""
load("//tools:defaults2.bzl", _ts_project = "ts_project")
def ts_project(name, **kwargs):
_ts_project(
name = name,
tsconfig = "//devtools:tsconfig_build",
**kwargs
)
def ts_test_library(name, deps = [], **kwargs):
_ts_project(
name = name,
tsconfig = "//devtools:tsconfig_test",
testonly = 1,
deps = deps + [
"//:node_modules/@types/jasmine",
],
**kwargs
)