build: move repeated tsconfig attributes to a macro (#20964)

This helps ensure we use the same tsconfig.json file for all compilations.
Next steps are to make it the same tsconfig.json file used by the editor

PR Close #20964
This commit is contained in:
Alex Eagle
2018-01-09 15:24:00 -08:00
parent f15ca6ce50
commit c4f02e21dd
54 changed files with 83 additions and 123 deletions

View File

@ -5,16 +5,9 @@ exports_files([
"tsconfig.json",
])
load("@build_bazel_rules_typescript//:defs.bzl", "ts_config", "ts_library")
ts_config(
name = "tsconfig",
src = ":tsconfig-build.json",
deps = [],
)
load("//tools:defaults.bzl", "ts_library")
ts_library(
name = "types",
srcs = glob(["*.ts"]),
tsconfig = ":tsconfig",
)