angular-cn/dev-infra/BUILD.bazel

39 lines
850 B
Python

load("@build_bazel_rules_nodejs//:index.bzl", "pkg_npm")
load("@npm_bazel_typescript//:index.bzl", "ts_library")
ts_library(
name = "cli",
srcs = [
"cli.ts",
],
module_name = "@angular/dev-infra-private",
deps = [
"//dev-infra/pullapprove",
"@npm//@types/node",
],
)
genrule(
name = "package-json",
srcs = [
"tmpl-package.json",
"//:package.json",
],
outs = ["package.json"],
cmd = """
$(location //tools:inline-package-json-deps) $(location tmpl-package.json) \
$(location //:package.json) $@
""",
tools = ["//tools:inline-package-json-deps"],
)
pkg_npm(
name = "npm_package",
visibility = ["//visibility:public"],
deps = [
":cli",
":package-json",
"//dev-infra/ts-circular-dependencies",
],
)