mirror of
https://github.com/enso-org/enso.git
synced 2024-12-02 02:14:12 +03:00
32 lines
774 B
Python
32 lines
774 B
Python
load("@aspect_rules_js//npm:defs.bzl", "npm_package")
|
|
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 = ["//: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"],
|
|
) |