mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
b4c40c5d55
Detect the correct workspace for the source maps dep.
30 lines
659 B
Python
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]
|