@cannbot-ai/install-helper 0.0.2-beta.53 → 0.0.2-beta.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -4541,8 +4541,12 @@ function createCLI() {
4541
4541
  }
4542
4542
 
4543
4543
  // src/index.ts
4544
+ process.on("SIGINT", () => {
4545
+ console.log("\n" + t("init_cancelled"));
4546
+ process.exit(0);
4547
+ });
4544
4548
  process.on("uncaughtException", (error) => {
4545
- if (error.name === "ExitPromptError") {
4549
+ if (error.name === "ExitPromptError" || error.message?.includes("force closed") || error.message?.includes("SIGINT")) {
4546
4550
  console.log("\n" + t("init_cancelled"));
4547
4551
  process.exit(0);
4548
4552
  }