Files
angular__angular/tools/symbol-extractor/BUILD.bazel
Paul Gschwendtner 04e9696cf5 refactor: update tools tests and scripts to work with Bazel ESM (#48521)
* The Karma Bazel Saucelabs binary needs to use `.mjs` as everything in
  the repo w/Bazel is supposed to be ESM.
* The symbol extractor test is updated to no longer use CommonJS
  features like `require.resolve`.

PR Close #48521
2022-12-19 19:50:44 +00:00

46 lines
964 B
Python

load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")
package(default_visibility = ["//visibility:public"])
ts_library(
name = "lib",
testonly = True,
srcs = glob(
["**/*.ts"],
exclude = [
"**/*_spec.ts",
"**/*_spec",
],
),
deps = [
"//packages:types",
"@npm//@bazel/runfiles",
"@npm//typescript",
],
)
ts_library(
name = "test_lib",
testonly = 1,
srcs = glob(
["**/*_spec.ts"],
exclude = ["symbol_extractor_spec/**"],
),
deps = [
":lib",
"//packages:types",
"@npm//@bazel/runfiles",
"@npm//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",
],
)