Anki/ts/BUILD.bazel
Damien Elmes 3ca4ca397a add workaround for protobufjs requiring uppercase package names
I mourn the time lost trying to track this down :-(

https://github.com/protobufjs/protobuf.js/issues/1014

We can't patch the minified file in dist without essentially duplicating
it, so this change also switches from the external file to including
the src file as part of the bundle.
2021-07-10 15:24:01 +10:00

40 lines
701 B
Text

load("//ts:prettier.bzl", "prettier", "prettier_test")
load("//ts:sql_format.bzl", "sql_format_setup")
load("@npm//@bazel/typescript:index.bzl", "ts_library")
prettier()
prettier_test(
name = "format_check",
srcs = glob([
"*.ts",
"*.js",
]),
)
sql_format_setup()
ts_library(
name = "image_module_support",
srcs = ["images.d.ts"],
visibility = ["//visibility:public"],
)
# Exported files
#################
exports_files([
"tsconfig.json",
".prettierrc",
".eslintrc.js",
"licenses.json",
"sql_format.ts",
"jest.config.js",
"package.json",
"protobuf-no-long.js",
])
alias(
name = "yarn",
actual = "@nodejs//:yarn",
)