angular/packages/compiler/BUILD.bazel
Joey Perrott cbc258eec8 build: remove ts_project_interop infrastructure (#62908)
Remove the interop macros and final usages

PR Close #62908
2025-07-31 09:12:58 +00:00

66 lines
1.6 KiB
Text

load("//tools:defaults2.bzl", "ng_package", "npm_package", "ts_project", "tsec_test")
package(default_visibility = ["//visibility:public"])
ts_project(
name = "compiler",
srcs = glob(
[
"*.ts",
"src/**/*.ts",
],
),
)
tsec_test(
name = "tsec_test",
target = ":compiler",
tsconfig = "//packages:tsconfig_build",
)
ng_package(
name = "npm_package",
srcs = [
"package.json",
],
package = "@angular/compiler",
side_effect_entry_points = [
"@angular/compiler",
],
tags = [
"release-with-framework",
],
# Do not add more to this list.
# Dependencies on the full npm_package cause long re-builds.
visibility = [
"//adev:__pkg__",
"//devtools/tools/angular-optimization:__subpackages__",
"//integration:__subpackages__",
"//modules/ssr-benchmarks:__subpackages__",
"//packages/compiler-cli/integrationtest:__pkg__",
"//packages/core/test/bundling:__subpackages__",
"//packages/core/test/playground/zone-signal-input:__pkg__",
"//packages/language-service/test:__pkg__",
],
deps = [
":compiler",
],
)
# TODO(devversion): Temporary early `npm_package` for making compiler usable in `rules_angular`.
# Long-term, `pkg_npm` will be migrated to `npm_package` in general.
npm_package(
name = "pkg",
srcs = [":npm_package_nosub"],
replace_prefixes = {
"npm_package_nosub/": "",
},
)
filegroup(
name = "files_for_docgen",
srcs = glob([
"*.ts",
"src/**/*.ts",
]),
)