Skip to content

Commit 621f7df

Browse files
committed
build: use rules_js ts_config for root tsconfig.json file (#2943)
PR Close #2943
1 parent 2d87dfe commit 621f7df

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

BUILD.bazel

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
load("@aspect_rules_ts//ts:defs.bzl", rules_js_tsconfig = "ts_config")
21
load("@devinfra_npm//:defs.bzl", "npm_link_all_packages")
3-
load("@npm//@bazel/typescript:index.bzl", "ts_config")
4-
load("//tools:defaults2.bzl", "js_binary")
2+
load("//tools:defaults2.bzl", "js_binary", "ts_config")
53

64
npm_link_all_packages()
75

8-
rules_js_tsconfig(
9-
name = "rjs-tsconfig",
6+
ts_config(
7+
name = "tsconfig",
108
src = "tsconfig.json",
119
visibility = ["//visibility:public"],
1210
)
@@ -16,12 +14,6 @@ exports_files([
1614
".yarnrc.yml",
1715
])
1816

19-
ts_config(
20-
name = "tsconfig",
21-
src = "tsconfig.json",
22-
visibility = ["//visibility:public"],
23-
)
24-
2517
js_binary(
2618
name = "yarn_berry_vendored",
2719
data = [".yarn/releases/yarn-4.9.1.cjs"],

github-actions/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ts_config(
77
src = "tsconfig.json",
88
deps = [
99
"//:node_modules/@types/node",
10-
"//:rjs-tsconfig",
10+
"//:tsconfig",
1111
],
1212
)
1313

0 commit comments

Comments
 (0)