angular-cn/packages/bazel/BUILD.bazel

24 lines
575 B
Python

load("@build_bazel_rules_nodejs//:defs.bzl", "npm_package")
genrule(
name = "workspace",
outs = ["WORKSPACE"],
cmd = "echo 'workspace(name=\"angular\")' > $@",
)
npm_package(
name = "npm_package",
srcs = [
"index.bzl",
"package.json",
"//packages/bazel/src:package_assets",
],
# Re-host //packages/bazel/ which is just // in the public distro
replacements = {
"//packages/bazel/": "//",
"angular/packages/bazel/": "angular/",
},
stamp_data = "//tools:stamp_data",
deps = [":workspace"],
)