build: Add pullapprove verification tool to dev-infra-private package (#35911)
Migrates pullapprove verification tool to be available in the dev-infra-private package PR Close #35911
This commit is contained in:

committed by
Matias Niemelä

parent
65a6848ed7
commit
e4b1e6c622
@ -1,5 +1,6 @@
|
||||
load("@build_bazel_rules_nodejs//:index.bzl", "pkg_npm")
|
||||
load("@npm_bazel_typescript//:index.bzl", "ts_library")
|
||||
load("@npm_bazel_rollup//:index.bzl", "rollup_bundle")
|
||||
|
||||
ts_library(
|
||||
name = "cli",
|
||||
@ -7,10 +8,24 @@ ts_library(
|
||||
"cli.ts",
|
||||
],
|
||||
deps = [
|
||||
"//dev-infra/pullapprove",
|
||||
"@npm//@types/node",
|
||||
],
|
||||
)
|
||||
|
||||
rollup_bundle(
|
||||
name = "bundle",
|
||||
config_file = "rollup.config.js",
|
||||
entry_point = ":cli.ts",
|
||||
format = "umd",
|
||||
sourcemap = "hidden",
|
||||
deps = [
|
||||
":cli",
|
||||
"@npm//rollup-plugin-commonjs",
|
||||
"@npm//rollup-plugin-node-resolve",
|
||||
],
|
||||
)
|
||||
|
||||
pkg_npm(
|
||||
name = "npm_package",
|
||||
srcs = [
|
||||
@ -18,6 +33,6 @@ pkg_npm(
|
||||
],
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
":cli",
|
||||
":bundle",
|
||||
],
|
||||
)
|
||||
|
Reference in New Issue
Block a user