ea7611d8cc
The separate repo made it difficult to update the rules, and made things more complicated than they needed to be.
25 lines
579 B
Python
25 lines
579 B
Python
load("@build_bazel_rules_nodejs//:index.bzl", "nodejs_binary")
|
|
|
|
nodejs_binary(
|
|
name = "typescript",
|
|
data = [
|
|
"@npm//typescript",
|
|
],
|
|
entry_point = "@npm//:node_modules/typescript/lib/tsc.js",
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
nodejs_binary(
|
|
name = "svelte",
|
|
data = [
|
|
":svelte.js",
|
|
"@npm//sass",
|
|
"@npm//svelte",
|
|
"@npm//svelte-preprocess",
|
|
"@npm//svelte2tsx",
|
|
],
|
|
entry_point = ":svelte.js",
|
|
templated_args = ["--bazel_patch_module_resolver"],
|
|
visibility = ["//visibility:public"],
|
|
)
|