Bazel: Prepare license tooling for Bazel 10

Export Documentation/licenses.txt for the release license-map path.

The node_modules license generator is used as a js_run_binary tool,
so its TypeScript dependencies may be analyzed in the exec
configuration. With Bazel 10, the rules_ts
default_to_tsc_transpiler build setting is not visible on that path,
causing ts_project to fail with "You must select a transpiler".

Select the tsc transpiler explicitly for the license map TypeScript
targets instead of relying on the global rules_ts default flag.

Release-Notes: skip
Change-Id: Ib0a6a396bcb9ee72add56f456d44645c61f9dc9b
diff --git a/Documentation/BUILD b/Documentation/BUILD
index 9a8451b..5c4d423 100644
--- a/Documentation/BUILD
+++ b/Documentation/BUILD
@@ -6,6 +6,7 @@
 package(default_visibility = ["//visibility:public"])
 
 exports_files([
+    "licenses.txt",
     "replace_macros.py",
 ])
 
diff --git a/polygerrit-ui/app/node_modules_licenses/BUILD b/polygerrit-ui/app/node_modules_licenses/BUILD
index a1c869d..dc85b23 100644
--- a/polygerrit-ui/app/node_modules_licenses/BUILD
+++ b/polygerrit-ui/app/node_modules_licenses/BUILD
@@ -7,6 +7,7 @@
     srcs = [
         "licenses.ts",
     ],
+    transpiler = "tsc",
     tsconfig = "tsconfig.json",
     deps = [
         "//tools/node_tools:node_modules",
diff --git a/tools/node_tools/node_modules_licenses/BUILD b/tools/node_tools/node_modules_licenses/BUILD
index c9fb69a..3e33ff7 100644
--- a/tools/node_tools/node_modules_licenses/BUILD
+++ b/tools/node_tools/node_modules_licenses/BUILD
@@ -8,6 +8,7 @@
     name = "licenses-map",
     srcs = glob(["*.ts"]),
     declaration = True,
+    transpiler = "tsc",
     tsconfig = "tsconfig.json",
     deps = [
         "//tools/node_tools:node_modules",