Skip to content

Commit

Permalink
test: tsconfig extends using ts_config target
Browse files Browse the repository at this point in the history
  • Loading branch information
jbedard committed Jan 9, 2025
1 parent 60c2e54 commit 8b02b7a
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion examples/extends_chain/main/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("@aspect_rules_ts//ts:defs.bzl", "ts_project")
load("@aspect_rules_ts//ts:defs.bzl", "ts_config", "ts_project")

# Uses tsconfig.json in this source folder by default
ts_project(
Expand All @@ -19,3 +19,19 @@ ts_project(
},
},
)

# Using a ts_config rule
ts_config(
name = "tsconfig_node_extension",
src = "tsconfig.json",
deps = [
"//examples/extends_chain:tsconfig_node",
],
)

ts_project(
name = "tsconfig_target",
srcs = ["main.ts"],
out_dir = "config_target",
tsconfig = ":tsconfig_node_extension",
)

0 comments on commit 8b02b7a

Please sign in to comment.