diff --git a/src/index.ts b/src/index.ts index 8cb03de8..413bb7dc 100644 --- a/src/index.ts +++ b/src/index.ts @@ -237,10 +237,10 @@ export async function build(_options: Options) { }) worker.on('message', (data) => { if (data === 'error') { - worker.terminate(); + worker.terminate() reject(new Error('error occured in dts build')) } else if (data === 'success') { - worker.terminate(); + worker.terminate() resolve() } else { const { type, text } = data