2020-03-04 12:42:45 -05:00
|
|
|
load("@build_bazel_rules_nodejs//:index.bzl", "pkg_npm")
|
|
|
|
load("@npm_bazel_typescript//:index.bzl", "ts_library")
|
|
|
|
|
|
|
|
ts_library(
|
|
|
|
name = "cli",
|
|
|
|
srcs = [
|
|
|
|
"cli.ts",
|
|
|
|
],
|
2020-03-17 07:58:17 -04:00
|
|
|
module_name = "@angular/dev-infra-private",
|
2020-03-04 12:42:45 -05:00
|
|
|
deps = [
|
2020-03-10 13:29:44 -04:00
|
|
|
"//dev-infra/commit-message",
|
2020-03-04 17:37:21 -05:00
|
|
|
"//dev-infra/pullapprove",
|
2020-03-10 13:29:44 -04:00
|
|
|
"//dev-infra/utils:config",
|
2020-03-04 12:42:45 -05:00
|
|
|
"@npm//@types/node",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2020-03-17 07:58:17 -04:00
|
|
|
genrule(
|
|
|
|
name = "package-json",
|
|
|
|
srcs = [
|
|
|
|
"tmpl-package.json",
|
|
|
|
"//:package.json",
|
2020-03-04 17:37:21 -05:00
|
|
|
],
|
2020-03-17 07:58:17 -04:00
|
|
|
outs = ["package.json"],
|
|
|
|
cmd = """
|
|
|
|
$(location //tools:inline-package-json-deps) $(location tmpl-package.json) \
|
|
|
|
$(location //:package.json) $@
|
|
|
|
""",
|
|
|
|
tools = ["//tools:inline-package-json-deps"],
|
2020-03-04 17:37:21 -05:00
|
|
|
)
|
|
|
|
|
2020-03-04 12:42:45 -05:00
|
|
|
pkg_npm(
|
|
|
|
name = "npm_package",
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
2020-03-17 07:58:17 -04:00
|
|
|
":cli",
|
|
|
|
":package-json",
|
2020-03-10 13:29:44 -04:00
|
|
|
"//dev-infra/commit-message",
|
2020-03-17 07:58:17 -04:00
|
|
|
"//dev-infra/ts-circular-dependencies",
|
2020-03-04 12:42:45 -05:00
|
|
|
],
|
|
|
|
)
|