fix(bazel): do not typecheck core schematic files (#29876)

Currently for Angular Bazel projects, NGC needs to be run in the
"postinstall" NPM script in order to generate required summary files.

We need to update the postinstall `tsconfig` to not check/re-build the
`@angular/core` schematic code which has transitive dependencies
which are only available inside of a CLI project. As this is not guaranteed
to be the case with Angular Bazel projects, we need to make sure that
we don't check/re-build these files.

PR Close #29876
This commit is contained in:
Paul Gschwendtner 2019-04-13 14:01:03 +02:00 committed by Ben Lesh
parent 22294dfad1
commit 2ba799ddc7
2 changed files with 2 additions and 0 deletions

View File

@ -20,6 +20,7 @@
], ],
"exclude": [ "exclude": [
"node_modules/@angular/bazel/**", "node_modules/@angular/bazel/**",
"node_modules/@angular/core/schematics/**",
"node_modules/@angular/compiler-cli/**", "node_modules/@angular/compiler-cli/**",
"node_modules/@angular/**/testing/**", "node_modules/@angular/**/testing/**",
"node_modules/@angular/router/upgrade*" "node_modules/@angular/router/upgrade*"

View File

@ -17,6 +17,7 @@
], ],
"exclude": [ "exclude": [
"node_modules/@angular/bazel/**", "node_modules/@angular/bazel/**",
"node_modules/@angular/core/schematics/**",
"node_modules/@angular/compiler-cli/**", "node_modules/@angular/compiler-cli/**",
"node_modules/@angular/**/testing/**", "node_modules/@angular/**/testing/**",
"node_modules/@angular/router/upgrade*" "node_modules/@angular/router/upgrade*"