build(bazel): specify tsconfig-test dependency (#28696)

PR Close #28696
This commit is contained in:
Cody Schroeder 2019-02-13 09:16:27 -08:00 committed by Misko Hevery
parent 6fcf286344
commit 2e3cc45c74
3 changed files with 9 additions and 3 deletions

View File

@ -2,10 +2,10 @@ package(default_visibility = ["//visibility:public"])
exports_files([ exports_files([
"tsconfig-build.json", "tsconfig-build.json",
"tsconfig-test.json",
"tsconfig.json", "tsconfig.json",
]) ])
load("@build_bazel_rules_typescript//:defs.bzl", "ts_config")
load("//tools:defaults.bzl", "ts_library") load("//tools:defaults.bzl", "ts_library")
ts_library( ts_library(
@ -17,6 +17,12 @@ ts_library(
], ],
) )
ts_config(
name = "tsconfig-test",
src = "tsconfig-test.json",
deps = [":tsconfig-build.json"],
)
exports_files([ exports_files([
"license-banner.txt", "license-banner.txt",
"README.md", "README.md",

View File

@ -5,7 +5,7 @@ load("//tools:defaults.bzl", "ts_library")
ts_library( ts_library(
name = "testing_examples", name = "testing_examples",
srcs = glob(["**/*.ts"]), srcs = glob(["**/*.ts"]),
tsconfig = "//packages:tsconfig-test.json", tsconfig = "//packages:tsconfig-test",
deps = [ deps = [
"@ngdeps//@types/jasmine", "@ngdeps//@types/jasmine",
"@ngdeps//@types/node", "@ngdeps//@types/node",

View File

@ -7,7 +7,7 @@ load("//packages/bazel:index.bzl", _ng_module = "ng_module", _ng_package = "ng_p
load("//packages/bazel/src:ng_rollup_bundle.bzl", _ng_rollup_bundle = "ng_rollup_bundle") load("//packages/bazel/src:ng_rollup_bundle.bzl", _ng_rollup_bundle = "ng_rollup_bundle")
_DEFAULT_TSCONFIG_BUILD = "//packages:tsconfig-build.json" _DEFAULT_TSCONFIG_BUILD = "//packages:tsconfig-build.json"
_DEFAULT_TSCONFIG_TEST = "//packages:tsconfig-test.json" _DEFAULT_TSCONFIG_TEST = "//packages:tsconfig-test"
_DEFAULT_TS_TYPINGS = "@ngdeps//typescript:typescript__typings" _DEFAULT_TS_TYPINGS = "@ngdeps//typescript:typescript__typings"
_DEFAULT_KARMA_BIN = "@ngdeps//@bazel/karma/bin:karma" _DEFAULT_KARMA_BIN = "@ngdeps//@bazel/karma/bin:karma"
_INTERNAL_NG_MODULE_COMPILER = "//packages/bazel/src/ngc-wrapped" _INTERNAL_NG_MODULE_COMPILER = "//packages/bazel/src/ngc-wrapped"