angular/tools/symbol-extractor/BUILD.bazel
Kristiyan Kostadinov af6c652464 build: fix symbol extractor script (#61407)
* Fixes that the symbol extractor approval script was broken after some recent build changes.
* Fixes the `run_all_symbol_extractor_tests` script which wasn't resolving any targets, because the rule name changed.

PR Close #61407
2025-05-16 13:59:11 +00:00

47 lines
1.1 KiB
Text

load("//tools:defaults.bzl", "jasmine_node_test")
load("//tools:defaults2.bzl", "ts_project")
package(default_visibility = ["//visibility:public"])
ts_project(
name = "lib",
testonly = True,
srcs = glob(
["**/*.mts"],
exclude = [
"**/*_spec.mts",
"**/*_spec",
],
),
tsconfig = "//tools:tsconfig_build",
deps = [
"//:node_modules/@bazel/runfiles",
"//:node_modules/@types/jasmine",
"//:node_modules/typescript",
],
)
ts_project(
name = "test_lib",
testonly = 1,
srcs = glob(
["**/*_spec.mts"],
exclude = ["symbol_extractor_spec/**"],
),
tsconfig = "//tools:tsconfig_test",
deps = [
":lib_rjs",
"//:node_modules/@bazel/runfiles",
"//:node_modules/typescript",
],
)
jasmine_node_test(
name = "test",
data = glob(["symbol_extractor_spec/**"]),
deps = [
":test_lib",
"//tools/symbol-extractor/symbol_extractor_spec:es2015_class_output",
"//tools/symbol-extractor/symbol_extractor_spec:fixtures",
],
)