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:
@ -1,6 +1,7 @@
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library", "ts_web_test")
|
||||
load("//tools:defaults.bzl", "ts_library")
|
||||
load("@build_bazel_rules_typescript//:defs.bzl", "ts_web_test")
|
||||
load("@build_bazel_rules_nodejs//:defs.bzl", "jasmine_node_test")
|
||||
|
||||
ts_library(
|
||||
@ -13,7 +14,6 @@ ts_library(
|
||||
"render3/**/*.ts",
|
||||
],
|
||||
),
|
||||
tsconfig = "//packages:tsconfig",
|
||||
deps = [
|
||||
"//packages/animations",
|
||||
"//packages/animations/browser",
|
||||
@ -37,7 +37,6 @@ ts_library(
|
||||
name = "test_node_only_lib",
|
||||
testonly = 1,
|
||||
srcs = glob(["**/*_node_only_spec.ts"]),
|
||||
tsconfig = "//packages:tsconfig",
|
||||
deps = [
|
||||
":test_lib",
|
||||
"//packages/compiler",
|
||||
|
@ -1,6 +1,7 @@
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library", "ts_web_test")
|
||||
load("//tools:defaults.bzl", "ts_library")
|
||||
load("@build_bazel_rules_typescript//:defs.bzl", "ts_web_test")
|
||||
load("@build_bazel_rules_nodejs//:defs.bzl", "jasmine_node_test")
|
||||
|
||||
ts_library(
|
||||
@ -14,6 +15,7 @@ ts_library(
|
||||
"load_domino.ts",
|
||||
],
|
||||
),
|
||||
# TODO(alexeagle): should not be different tsconfig
|
||||
tsconfig = "//packages:tsconfig.json",
|
||||
deps = [
|
||||
"//packages:types",
|
||||
@ -34,7 +36,6 @@ ts_library(
|
||||
"domino.d.ts",
|
||||
"load_domino.ts",
|
||||
],
|
||||
tsconfig = "//packages:tsconfig",
|
||||
deps = [
|
||||
":render3_lib",
|
||||
"//packages/platform-browser",
|
||||
|
Reference in New Issue
Block a user