Adapt to usage of aspect_rules_*

Change-Id: I4da1939357e35b4db13ae18e06c99bf90098fe3c
diff --git a/web/BUILD b/web/BUILD
index 16f1ab4..b3cf7fb 100644
--- a/web/BUILD
+++ b/web/BUILD
@@ -1,7 +1,7 @@
+load("@aspect_rules_ts//ts:defs.bzl", "ts_config", "ts_project")
 load("//tools/bzl:plugin.bzl", "gerrit_plugin")
 load("//tools/js:eslint.bzl", "plugin_eslint")
-load("//tools/bzl:js.bzl", "gerrit_js_bundle")
-load("@npm//@bazel/typescript:index.bzl", "ts_config", "ts_project")
+load("@com_googlesource_gerrit_bazlets//js:defs.bzl", "gerrit_js_bundle")
 
 package_group(
     name = "visibility",
@@ -14,7 +14,7 @@
     name = "tsconfig",
     src = "tsconfig.json",
     deps = [
-        "//plugins:tsconfig-plugins-base.json",
+        "//plugins:tsconfig-plugins-base",
     ],
 )
 
@@ -26,11 +26,9 @@
     ),
     incremental = True,
     out_dir = "_bazel_ts_out",
-    tsc = "//tools/node_tools:tsc-bin",
     tsconfig = ":tsconfig",
     deps = [
-        "@plugins_npm//@gerritcodereview/typescript-api",
-        "@plugins_npm//lit",
+        "//plugins:node_modules",
     ],
 )
 
diff --git a/web/tsconfig.json b/web/tsconfig.json
index 0ba2503..06d7107 100644
--- a/web/tsconfig.json
+++ b/web/tsconfig.json
@@ -1,8 +1,7 @@
 {
   "extends": "../../tsconfig-plugins-base.json",
   "compilerOptions": {
-    /* outDir for IDE (overridden by Bazel rule arg) */
-    "outDir": "../../../.ts-out/plugins/checks-jenkins/web",
+    "rootDir": "."
   },
   "include": [
     "**/*"