use absolute path for sql_format

This commit is contained in:
Damien Elmes 2021-10-31 11:13:38 +10:00
parent 09c29219b4
commit 69c04baf5a

View File

@ -3,8 +3,8 @@ load("@build_bazel_rules_nodejs//:index.bzl", "nodejs_test")
def sql_format(name = "sql_format", srcs = [], **kwargs):
nodejs_test(
name = name,
entry_point = "//ts/sql_format:sql_format.ts",
entry_point = "@ankidesktop//ts/sql_format:sql_format.ts",
args = [native.package_name() + "/" + f for f in srcs],
data = ["//ts/sql_format:sql_format_lib", "@npm//tslib", "@npm//diff"] + srcs,
data = ["@ankidesktop//ts/sql_format:sql_format_lib", "@npm//tslib", "@npm//diff"] + srcs,
**kwargs
)