Files
angular__angular/packages/BUILD.bazel
T
Pei Wang d12d068c37 build: Turn tsec checks into bazel tests. (#43108)
Introduce two new bazel rules: tsec_test and tsec_config, for
describing the tsec checks and the tsconfig file needed for such
checks, respectively. Currently, tsec_test only checks the srcs
of a ts_library or ng_module. It does not check direct or transitive
dependencies. Also, tsconfig files need to be manually maintained
to make sure tsec can read all necessary input (including global
symbols).

PR Close #43108
2021-09-13 14:45:57 -07:00

37 lines
708 B
Python

load("//tools:defaults.bzl", "ts_config", "ts_library")
load("//tools:tsec.bzl", "tsec_config")
package(default_visibility = ["//visibility:public"])
exports_files([
"tsconfig-build.json",
"tsconfig.json",
])
ts_library(
name = "types",
srcs = glob(["*.ts"]),
deps = [
"//packages/zone.js/lib:zone_d_ts",
"@npm//@types/hammerjs",
],
)
ts_config(
name = "tsconfig-test",
src = "tsconfig-test.json",
deps = [":tsconfig-build.json"],
)
tsec_config(
name = "tsec_config",
src = "tsconfig-tsec-base.json",
exemption = ":tsec-exemption.json",
deps = [":tsconfig-build.json"],
)
exports_files([
"license-banner.txt",
"README.md",
])