Skip to content

Commit

Permalink
fix(concatjs): sync with internal change to ensure it works with `tsi…
Browse files Browse the repository at this point in the history
…ckle` host (#3510)

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.
  • Loading branch information
devversion committed Jul 26, 2022
1 parent 4001716 commit 78a0528
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/concatjs/internal/tsc_wrapped/compiler_host.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 78a0528

Please sign in to comment.