mirror of
https://github.com/enso-org/enso.git
synced 2024-12-02 13:22:34 +03:00
33 lines
823 B
Python
33 lines
823 B
Python
load("@aspect_rules_js//npm:defs.bzl", "npm_package")
|
|
load("@npm//:defs.bzl", "npm_link_all_packages")
|
|
load("@aspect_rules_ts//ts:defs.bzl", "ts_config", "ts_project")
|
|
load("@npm//:defs.bzl", "npm_link_all_packages", "npm_link_targets")
|
|
npm_link_all_packages(name = "node_modules")
|
|
|
|
ts_config(
|
|
name = "tsconfig",
|
|
src = "tsconfig.json",
|
|
deps = ["//app:tsconfig"],
|
|
)
|
|
|
|
ts_project(
|
|
name = "tsc",
|
|
composite = True,
|
|
tsconfig = ":tsconfig",
|
|
allow_js = True,
|
|
out_dir = "dist",
|
|
root_dir = "src",
|
|
resolve_json_module = True,
|
|
srcs = glob(["src/**/*.ts", "src/**/*.js", "src/text/english.json"]),
|
|
deps = npm_link_targets()
|
|
)
|
|
|
|
npm_package(
|
|
name = "pkg",
|
|
srcs = [
|
|
":tsc",
|
|
"package.json",
|
|
"src/config.json",
|
|
],
|
|
visibility = ["//visibility:public"],
|
|
) |