Prepare for migration from ts_library to ts_project

With the upcoming migration from rules_nodejs to rules_js, I am
changing all the `ts_library` targets to become `ts_project` targets.

This patch introduces an alias for a NOP effect. A future patch will
switch the actual implementation.

I am leaving the scouting directory alone because all the build rules
will change completely. They will use Angular-specific rules.

Signed-off-by: Philipp Schrader <philipp.schrader@gmail.com>
Change-Id: I4b4fd4d14dbf25d6dbdaa3c1725ee6b651eedab6
diff --git a/frc971/analysis/BUILD b/frc971/analysis/BUILD
index c1ae252..36c450a 100644
--- a/frc971/analysis/BUILD
+++ b/frc971/analysis/BUILD
@@ -1,5 +1,4 @@
-load("@npm//@bazel/typescript:index.bzl", "ts_library")
-load("//tools/build_rules:js.bzl", "rollup_bundle")
+load("//tools/build_rules:js.bzl", "rollup_bundle", "ts_project")
 load("@com_github_google_flatbuffers//:build_defs.bzl", "flatbuffer_cc_library")
 load("@com_github_google_flatbuffers//:typescript.bzl", "flatbuffer_ts_library")
 load("//aos:config.bzl", "aos_config")
@@ -33,7 +32,7 @@
     deps = ["//aos:configuration_fbs_python"],
 )
 
-ts_library(
+ts_project(
     name = "plot_index",
     srcs = ["plot_index.ts"],
     target_compatible_with = ["@platforms//os:linux"],
@@ -127,7 +126,7 @@
     target_compatible_with = ["@platforms//os:linux"],
 )
 
-ts_library(
+ts_project(
     name = "plot_data_utils",
     srcs = ["plot_data_utils.ts"],
     visibility = ["//visibility:public"],
diff --git a/frc971/analysis/cpp_plot/BUILD b/frc971/analysis/cpp_plot/BUILD
index d6e74c3..7f34afe 100644
--- a/frc971/analysis/cpp_plot/BUILD
+++ b/frc971/analysis/cpp_plot/BUILD
@@ -1,9 +1,8 @@
-load("@npm//@bazel/typescript:index.bzl", "ts_library")
-load("//tools/build_rules:js.bzl", "rollup_bundle")
+load("//tools/build_rules:js.bzl", "rollup_bundle", "ts_project")
 
 package(default_visibility = ["//visibility:public"])
 
-ts_library(
+ts_project(
     name = "cpp_plot",
     srcs = ["cpp_plot.ts"],
     target_compatible_with = ["@platforms//os:linux"],
diff --git a/frc971/control_loops/drivetrain/BUILD b/frc971/control_loops/drivetrain/BUILD
index 13c8ade..86c1ec0 100644
--- a/frc971/control_loops/drivetrain/BUILD
+++ b/frc971/control_loops/drivetrain/BUILD
@@ -1,9 +1,9 @@
+load("//tools/build_rules:js.bzl", "ts_project")
 load("@com_github_google_flatbuffers//:build_defs.bzl", "flatbuffer_cc_library")
 load("@com_github_google_flatbuffers//:typescript.bzl", "flatbuffer_ts_library")
 load("//aos:config.bzl", "aos_config")
 load("//tools/build_rules:select.bzl", "cpu_select")
 load("//aos:flatbuffers.bzl", "cc_static_flatbuffer")
-load("@npm//@bazel/typescript:index.bzl", "ts_library")
 
 package(default_visibility = ["//visibility:public"])
 
@@ -786,7 +786,7 @@
     ],
 )
 
-ts_library(
+ts_project(
     name = "down_estimator_plotter",
     srcs = ["down_estimator_plotter.ts"],
     target_compatible_with = ["@platforms//os:linux"],
@@ -798,7 +798,7 @@
     ],
 )
 
-ts_library(
+ts_project(
     name = "spline_plotter",
     srcs = ["spline_plotter.ts"],
     target_compatible_with = ["@platforms//os:linux"],
@@ -809,7 +809,7 @@
     ],
 )
 
-ts_library(
+ts_project(
     name = "drivetrain_plotter",
     srcs = ["drivetrain_plotter.ts"],
     target_compatible_with = ["@platforms//os:linux"],
@@ -821,7 +821,7 @@
     ],
 )
 
-ts_library(
+ts_project(
     name = "robot_state_plotter",
     srcs = ["robot_state_plotter.ts"],
     target_compatible_with = ["@platforms//os:linux"],
diff --git a/frc971/image_streamer/www/BUILD b/frc971/image_streamer/www/BUILD
index 908c5b4..f808a73 100644
--- a/frc971/image_streamer/www/BUILD
+++ b/frc971/image_streamer/www/BUILD
@@ -1,5 +1,4 @@
-load("@npm//@bazel/typescript:index.bzl", "ts_library")
-load("//tools/build_rules:js.bzl", "rollup_bundle")
+load("//tools/build_rules:js.bzl", "rollup_bundle", "ts_project")
 load("//frc971/downloader:downloader.bzl", "aos_downloader_dir")
 
 package(default_visibility = ["//visibility:public"])
@@ -12,7 +11,7 @@
     ]),
 )
 
-ts_library(
+ts_project(
     name = "proxy",
     srcs = [
         "proxy.ts",
@@ -23,7 +22,7 @@
     ],
 )
 
-ts_library(
+ts_project(
     name = "main",
     srcs = [
         "main.ts",
diff --git a/frc971/wpilib/BUILD b/frc971/wpilib/BUILD
index eb0571c..ca3dd0c 100644
--- a/frc971/wpilib/BUILD
+++ b/frc971/wpilib/BUILD
@@ -1,4 +1,4 @@
-load("@npm//@bazel/typescript:index.bzl", "ts_library")
+load("//tools/build_rules:js.bzl", "ts_project")
 load("@com_github_google_flatbuffers//:build_defs.bzl", "flatbuffer_cc_library")
 load("@com_github_google_flatbuffers//:typescript.bzl", "flatbuffer_ts_library")
 load("//aos:config.bzl", "aos_config")
@@ -469,7 +469,7 @@
     ],
 )
 
-ts_library(
+ts_project(
     name = "imu_plot_utils",
     srcs = ["imu_plot_utils.ts"],
     target_compatible_with = ["@platforms//os:linux"],
@@ -484,7 +484,7 @@
     ],
 )
 
-ts_library(
+ts_project(
     name = "imu_plotter",
     srcs = ["imu_plotter.ts"],
     target_compatible_with = ["@platforms//os:linux"],