From 410ccacf388514ae1cde6ec9daccf03bc1e433db Mon Sep 17 00:00:00 2001 From: Alex Eagle Date: Fri, 8 Mar 2019 16:49:53 -0800 Subject: [PATCH] build: disable tsc_wrapped workers (#29197) Angular devs are hitting a bug with typings forcing them to run "bazel shutdown" PR Close #29197 --- .bazelrc | 4 +++- packages/bazel/src/schematics/ng-add/index.ts | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.bazelrc b/.bazelrc index ea96aedd2c..60a391ffe8 100644 --- a/.bazelrc +++ b/.bazelrc @@ -10,8 +10,10 @@ build:angular-team --remote_http_cache=https://storage.googleapis.com/angular-te # Make compilation fast, by keeping a few copies of the compilers # running as daemons, and cache SourceFile AST's to reduce parse time. -build --strategy=TypeScriptCompile=worker build --strategy=AngularTemplateCompile=worker +# TODO(alexeagle): re-enable after fixing worker instability with rxjs typings +# build --strategy=TypeScriptCompile=worker +build --strategy=TypeScriptCompile=standalone # Enable debugging tests with --config=debug test:debug --test_arg=--node_options=--inspect-brk --test_output=streamed --test_strategy=exclusive --test_timeout=9999 --nocache_test_results diff --git a/packages/bazel/src/schematics/ng-add/index.ts b/packages/bazel/src/schematics/ng-add/index.ts index 875caf4db9..e8a0d3dd3d 100755 --- a/packages/bazel/src/schematics/ng-add/index.ts +++ b/packages/bazel/src/schematics/ng-add/index.ts @@ -227,7 +227,7 @@ function updateTsconfigJson(): Rule { if (!host.exists(tsconfigPath)) { return host; } - const contentRaw = host.read(tsconfigPath).toString(); + const contentRaw = host.read(tsconfigPath) !.toString(); if (!contentRaw) { return host; }