We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc07f4d commit 0bb96d6Copy full SHA for 0bb96d6
packages/plugin-dts/src/dts.ts
@@ -286,6 +286,11 @@ export async function generateDts(data: DtsGenOptions): Promise<void> {
286
}
287
288
289
+// Graceful shutdown on disconnect when panic
290
+process.on('disconnect', () => {
291
+ process.exit();
292
+});
293
+
294
process.on('message', async (data: DtsGenOptions) => {
295
if (!data.cwd) {
296
return;
0 commit comments