Files
Derek Cormier b4c40c5d55 build(bazel): merge aio/tools/defaults.bzl and tools/defaults.bzl
Detect the correct workspace for the source maps dep.
2022-11-22 13:51:16 -07:00

30 lines
659 B
Python

load("//tools:defaults.bzl", "nodejs_binary", "ts_library")
package(default_visibility = ["//visibility:public"])
BIN_ENTRYPOINTS = [
"get-base-currencies-file",
"get-base-locale-file",
"get-closure-locale-file",
"write-locale-files-to-dist",
]
ts_library(
name = "bin",
srcs = glob(["*.ts"]),
deps = [
"//packages/common/locales/generate-locales-tool",
"@npm//@types/node",
],
)
[nodejs_binary(
name = entrypoint,
data = [
":bin",
"@cldr_json_data//:all_json",
"@cldr_xml_data//:all_xml",
],
entry_point = ":%s.ts" % entrypoint,
) for entrypoint in BIN_ENTRYPOINTS]