Skip to content

Commit acd18ca

Browse files
committed
fix: throw an error if any diagnostics are returned
1 parent 6a74940 commit acd18ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export async function tsc(opts: Options): Promise<void> {
7777
}
7878
})
7979

80-
if (emitResult.emitSkipped) {
80+
if (allDiagnostics.length) {
8181
throw new Error('Type Check returned errors')
8282
}
8383
}

0 commit comments

Comments
 (0)