1d4b58419e
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.
41 lines
701 B
Python
41 lines
701 B
Python
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",
|
|
)
|