diff --git a/cli.mjs b/cli.mjs index a9798d7..fd6a768 100644 --- a/cli.mjs +++ b/cli.mjs @@ -79,6 +79,6 @@ let child = spawn( ); // Clean up temporary files once the child exits -child.on('exit', async () => { +child.on('close', async () => { await cleanup(); });