angular/adev/shared-docs/pipeline/api-gen/extraction/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

36 lines
1,014 B
Text

load("//adev/shared-docs:defaults.bzl", "js_binary", "ts_project")
package(default_visibility = ["//adev/shared-docs/pipeline/api-gen:__subpackages__"])
ts_project(
name = "extract_api_to_json_lib",
srcs = glob(
["**/*.mts"],
exclude = [
"**/*.spec.mts",
],
),
deps = [
# TODO(rules_js): Explore how this could work alternatively at runtime with the module names.
"//adev/shared-docs/pipeline/api-gen:node_modules/@angular/compiler-cli",
"//adev/shared-docs/pipeline/api-gen:node_modules/@angular/compiler",
"//adev:node_modules/@types/node",
"//adev:node_modules/typescript",
],
)
# Action binary for the api_gen bazel rule.
js_binary(
name = "extract_api_to_json",
data = [
":extract_api_to_json_lib",
],
entry_point = ":index.mjs",
visibility = ["//visibility:public"],
)
# Expose the sources in the dev-infra NPM package.
filegroup(
name = "files",
srcs = glob(["**/*"]),
)