forked from aspect-build/rules_ts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.bazel
33 lines (28 loc) · 982 Bytes
/
BUILD.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
load("//ts:defs.bzl", "ts_project")
load(":flags_test.bzl", "ts_project_flags_test_suite")
load(":mock_transpiler.bzl", "mock")
load(":transpiler_tests.bzl", "transpiler_test_suite")
load(":ts_project_test.bzl", "ts_project_test_suite")
transpiler_test_suite()
ts_project_test_suite(name = "ts_project_test")
ts_project_flags_test_suite(name = "ts_project_flags_test")
# Ensure that when determining output location, the `root_dir` attribute is only removed once.
ts_project(
name = "rootdir_works_with_repeated_directory",
srcs = ["root/deep/root/deep_src.ts"],
root_dir = "root",
transpiler = mock,
tsconfig = {
"compilerOptions": {
"declaration": True,
"sourceMap": True,
},
},
)
bzl_library(
name = "mock_transpiler",
srcs = ["mock_transpiler.bzl"],
visibility = ["//visibility:public"],
deps = ["@aspect_rules_ts//ts/private:ts_lib"],
)