From 6c57b1065436411281d2e63110f912e68be8cede Mon Sep 17 00:00:00 2001 From: Blaze Shomida <131521446+blazeshomida@users.noreply.github.com> Date: Fri, 11 Oct 2024 18:08:58 -1000 Subject: [PATCH] fix: :bug: ensure process exits after copying project files - :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) }) }