Skip to content

Commit

Permalink
fix: throw an error if any diagnostics are returned
Browse files Browse the repository at this point in the history
  • Loading branch information
BenShelton committed May 28, 2021
1 parent 6a74940 commit acd18ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export async function tsc(opts: Options): Promise<void> {
}
})

if (emitResult.emitSkipped) {
if (allDiagnostics.length) {
throw new Error('Type Check returned errors')
}
}

0 comments on commit acd18ca

Please sign in to comment.