diff --git a/packages/jsii/lib/compiler.ts b/packages/jsii/lib/compiler.ts index 9fd4229cd1..9b52910c29 100644 --- a/packages/jsii/lib/compiler.ts +++ b/packages/jsii/lib/compiler.ts @@ -83,7 +83,7 @@ export class Compiler implements Emitter { const projectRoot = this.options.projectInfo.projectRoot; const host = ts.createWatchCompilerHost( await this._writeTypeScriptConfig(), - COMPILER_OPTIONS, + { ...COMPILER_OPTIONS, noEmitOnError: false }, { ...ts.sys, getCurrentDirectory() { return projectRoot; } } ); const orig = host.afterProgramCreate;