File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -244,8 +244,10 @@ export async function build(_options: Options) {
244
244
} )
245
245
worker . on ( 'message' , ( data ) => {
246
246
if ( data === 'error' ) {
247
+ worker . terminate ( )
247
248
reject ( new Error ( 'error occured in dts build' ) )
248
249
} else if ( data === 'success' ) {
250
+ worker . terminate ( )
249
251
resolve ( )
250
252
} else {
251
253
const { type, text } = data
Original file line number Diff line number Diff line change @@ -240,7 +240,6 @@ const startRollup = async (options: NormalizedOptions) => {
240
240
} catch {
241
241
parentPort ?. postMessage ( 'error' )
242
242
}
243
- parentPort ?. close ( )
244
243
}
245
244
}
246
245
@@ -250,7 +249,6 @@ parentPort?.on('message', (data) => {
250
249
if ( ! hasTypescript ) {
251
250
logger . error ( 'dts' , `You need to install "typescript" in your project` )
252
251
parentPort ?. postMessage ( 'error' )
253
- parentPort ?. close ( )
254
252
return
255
253
}
256
254
startRollup ( data . options )
You can’t perform that action at this time.
0 commit comments