Miško Hevery bfe35dac85 fix(ivy): change symbol-extractor to use .accept rather than -—define UPDATE_GOLDEN=1 (#22913)
Using `-—define` causes bazel to bust the cache which means that doing
`bazel test target` followed by `bazel run -—define UPDATE_GOLDEN=1 target` will
cause caches to be invalidated and house full rebuild.

PR Close #22913
2018-03-22 18:02:48 -04:00

40 lines
721 B
Python

package(default_visibility = ["//visibility:public"])
load("//tools:defaults.bzl", "ts_library")
load("@build_bazel_rules_nodejs//:defs.bzl", "jasmine_node_test")
ts_library(
name = "lib",
srcs = glob(
["**/*.ts"],
exclude = [
"**/*_spec.ts",
"**/*_spec",
],
),
deps = [
"//packages:types",
],
)
ts_library(
name = "test_lib",
testonly = 1,
srcs = glob(
["**/*_spec.ts"],
exclude = ["symbol_extractor_spec/**"],
),
deps = [
":lib",
"//packages:types",
],
)
jasmine_node_test(
name = "test",
data = glob(["symbol_extractor_spec/**"]),
deps = [
":test_lib",
],
)