build(bazel): disable persistent worker mode for TypeScript
Fixes
# Remote Build Execution requires a strong hash function, such as SHA256.
startup --host_jvm_args=-Dbazel.DigestFunction=SHA256
-# TODO(#3816): fix build with this enabled
-build --incompatible_list_based_execution_strategy_selection=false
+# Disable persistent workers for Typescript (#3816)
+build --strategy=TypeScriptCompile=sandboxed,local
# Required for build_bazel_rules_nodejs
common --experimental_allow_incremental_repository_updates
@@ -38,10 +38,8 @@ build:remote --remote_executor=grpcs://remotebuildexecution.googleapis.com
# build:remote --bes_timeout=60s
# build:remote --bes_results_url="https://source.cloud.google.com/results/invocations/"
-build:remote --spawn_strategy=remote
-build:remote --strategy=Javac=remote
-build:remote --strategy=Closure=remote
-build:remote --genrule_strategy=remote
+# Starting with Bazel 0.27.0 strategies do not need to be explicitly
+# # defined. See https://github.com/bazelbuild/bazel/issues/7480
build:remote --define=EXECUTOR=remote
build:remote --host_javabase=@bazel_toolchains//configs/ubuntu16_04_clang/1.2:jdk11
