anki/ts/sql_format/defs.bzl

11 lines
411 B
Python
Raw Normal View History

load("@build_bazel_rules_nodejs//:index.bzl", "nodejs_test")
def sql_format(name = "sql_format", srcs = [], **kwargs):
nodejs_test(
name = name,
2021-10-31 02:13:38 +01:00
entry_point = "@ankidesktop//ts/sql_format:sql_format.ts",
args = [native.package_name() + "/" + f for f in srcs],
2021-10-31 02:13:38 +01:00
data = ["@ankidesktop//ts/sql_format:sql_format_lib", "@npm//tslib", "@npm//diff"] + srcs,
**kwargs
)