The dev-infra package currently uses rollup for packaging. This has been done initially as a way to workaround manifest paths being used in the AMD JavaScript output. The actual solution to this problem is setting module names that match the `package.json` name. This ensures that the package can be consumed correctly in Bazel, and through NPM. This allows us to get rid of the rollup bundling, and we don't need to hard-code which dependencies should be external or included. Additionally, tools that are part of `dev-infra` can now specify their external dependencies simply in the `package.json`. To reduce version duplication, and out-of-sync versions, a new genrule has been created that syncs the versions with the top-level project `package.json`. PR Close #35647
21 lines
489 B
Python
21 lines
489 B
Python
load("@npm_bazel_typescript//:index.bzl", "ts_library")
|
|
|
|
ts_library(
|
|
name = "pullapprove",
|
|
srcs = [
|
|
"verify.ts",
|
|
],
|
|
module_name = "@angular/dev-infra-private/pullapprove",
|
|
visibility = ["//dev-infra:__subpackages__"],
|
|
deps = [
|
|
"@npm//@types/minimatch",
|
|
"@npm//@types/node",
|
|
"@npm//@types/shelljs",
|
|
"@npm//@types/yaml",
|
|
"@npm//minimatch",
|
|
"@npm//shelljs",
|
|
"@npm//tslib",
|
|
"@npm//yaml",
|
|
],
|
|
)
|