fix(bazel): update to tsickle 0.37.1 to fix peerDep warnings (#33788)

tsickle 0.37.1 is compatible with typescript 3.6, so we should use it and fix peerDep warnings from npm/yarn.

PR Close #33788
This commit is contained in:
Igor Minar
2019-11-12 23:17:06 -08:00
committed by Matias Niemelä
parent 18574cfed1
commit 719ca1d23c
7 changed files with 30 additions and 18 deletions

View File

@ -252,7 +252,10 @@ export function compile({allDepsCompiledWithBazel = true, compilerOpts, tsHost,
}
// Prevent tsickle adding any types at all if we don't want closure compiler annotations.
bazelHost.transformTypesToClosure = compilerOpts.annotateForClosureCompiler;
if (compilerOpts.annotateForClosureCompiler) {
bazelHost.transformTypesToClosure = true;
bazelHost.transformDecorators = true;
}
const origBazelHostFileExist = bazelHost.fileExists;
bazelHost.fileExists = (fileName: string) => {
if (NGC_ASSETS.test(fileName)) {