Anki/ts/svelte/BUILD.bazel
Damien Elmes 554081cee3 convert svelte worker to ts
Should make it easier to maintain, and ironically it also fixes
the issue with .mjs files from this morning.
2021-03-20 23:13:27 +10:00

24 lines
518 B
Text

load("@build_bazel_rules_nodejs//:index.bzl", "nodejs_binary")
load("@npm//@bazel/typescript:index.bzl", "ts_library")
_deps = [
"@npm//@bazel/worker",
"@npm//sass",
"@npm//svelte",
"@npm//svelte-preprocess",
"@npm//svelte2tsx",
"@npm//typescript",
]
ts_library(
name = "svelte_bin_ts",
srcs = ["svelte.ts"],
deps = _deps,
)
nodejs_binary(
name = "svelte_bin",
data = ["svelte_bin_ts"] + _deps,
entry_point = ":svelte.ts",
visibility = ["//visibility:public"],
)