build(bazel): fix tsconfig extends for //packages/bazel/test/protractor-2:ts_spec (#29280)

PR Close #29280
This commit is contained in:
Greg Magolan 2019-03-13 09:41:31 -07:00 committed by Kara Erickson
parent eb00a37eb8
commit 7b20cec986
2 changed files with 8 additions and 2 deletions

View File

@ -1,8 +1,14 @@
load("//packages/bazel:index.bzl", "protractor_web_test_suite") load("//packages/bazel:index.bzl", "protractor_web_test_suite")
load("@npm_bazel_typescript//:index.bzl", "ts_devserver") load("@npm_bazel_typescript//:index.bzl", "ts_config", "ts_devserver")
load("@build_bazel_rules_nodejs//:defs.bzl", "http_server", "rollup_bundle") load("@build_bazel_rules_nodejs//:defs.bzl", "http_server", "rollup_bundle")
load("//tools:defaults.bzl", "ts_library") load("//tools:defaults.bzl", "ts_library")
ts_config(
name = "tsconfig-test",
src = "tsconfig-test.json",
deps = [":tsconfig.json"],
)
ts_library( ts_library(
name = "app", name = "app",
srcs = ["app.ts"], srcs = ["app.ts"],
@ -34,7 +40,7 @@ ts_library(
name = "ts_spec", name = "ts_spec",
testonly = True, testonly = True,
srcs = ["test.spec.ts"], srcs = ["test.spec.ts"],
tsconfig = ":tsconfig.test.json", tsconfig = ":tsconfig-test",
deps = [ deps = [
"@npm//@types/selenium-webdriver", "@npm//@types/selenium-webdriver",
"@npm//protractor", "@npm//protractor",