From 536f3715c06802dbb5f56fb49433dfe56a86d8a4 Mon Sep 17 00:00:00 2001 From: "Blaze S." <131521446+blazeshomida@users.noreply.github.com> Date: Sun, 20 Oct 2024 04:58:54 -1000 Subject: [PATCH] fix: :bug: ensure process exits after copying project files (#76) - :bug: Added `process.exit(0)` to cleanly terminate the Node.js process once project files are copied. - :white_check_mark: Prevents hanging processes after file operations are complete. --- src/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.ts b/src/index.ts index b0c8593..38117b0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -203,6 +203,7 @@ async function main( emitter.on('completed', () => { console.log(chalk.green(`🎉 ${chalk.bold('Copied project files')}`)) console.log(chalk.gray('Get started with:'), chalk.bold(`cd ${target}`)) + process.exit(0) }) }