Skip to content

Commit

Permalink
fix: 🐛 ensure process exits after copying project files
Browse files Browse the repository at this point in the history
- 🐛 Added `process.exit(0)` to cleanly terminate the Node.js process once project files are copied.
- ✅ Prevents hanging processes after file operations are complete.
  • Loading branch information
blazeshomida committed Oct 12, 2024
1 parent b7f0fbc commit 6c57b10
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
}

Expand Down

0 comments on commit 6c57b10

Please sign in to comment.