From 55df84398378b66f23a19031f36c3c9f6755da13 Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Mon, 25 Jul 2022 15:38:21 +0200 Subject: [PATCH] fix(concatjs): sync with internal change to ensure it works with `tsickle` host Tsickle now requires a `generateExtraSuppressions` public property on the TS host. This change has been implemented internally but hasn't been synced upstream, making it difficult to update to the latest `tsickle` externally. --- packages/concatjs/internal/tsc_wrapped/compiler_host.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/concatjs/internal/tsc_wrapped/compiler_host.ts b/packages/concatjs/internal/tsc_wrapped/compiler_host.ts index 735ab5dc27..63aeb2c02d 100644 --- a/packages/concatjs/internal/tsc_wrapped/compiler_host.ts +++ b/packages/concatjs/internal/tsc_wrapped/compiler_host.ts @@ -84,6 +84,8 @@ export class CompilerHost implements ts.CompilerHost, tsickle.TsickleHost { getCancelationToken?: () => ts.CancellationToken; directoryExists?: (dir: string) => boolean; + + generateExtraSuppressions: boolean; googmodule: boolean; es5Mode: boolean; @@ -128,6 +130,8 @@ export class CompilerHost implements ts.CompilerHost, tsickle.TsickleHost { if (this.allowActionInputReads && delegate && delegate.directoryExists) { this.directoryExists = delegate.directoryExists.bind(delegate); } + + this.generateExtraSuppressions = true; validateBazelOptions(bazelOpts); this.googmodule = bazelOpts.googmodule;