@base44-preview/cli 0.0.22-pr.136.af86bf3 → 0.0.22-pr.139.0eee87a

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/bin/dev.js CHANGED
@@ -1,4 +1,11 @@
1
1
  #!/usr/bin/env tsx
2
+
3
+ // Disable Clack spinners and animations in non-interactive environments.
4
+ // Clack only checks the CI env var, so we set it when stdin/stdout aren't TTYs.
5
+ if (!process.stdin.isTTY || !process.stdout.isTTY) {
6
+ process.env.CI = 'true';
7
+ }
8
+
2
9
  import { program, CLIExitError } from "../src/cli/index.ts";
3
10
 
4
11
  try {
package/bin/run.js CHANGED
@@ -1,4 +1,11 @@
1
1
  #!/usr/bin/env node
2
+
3
+ // Disable Clack spinners and animations in non-interactive environments.
4
+ // Clack only checks the CI env var, so we set it when stdin/stdout aren't TTYs.
5
+ if (!process.stdin.isTTY || !process.stdout.isTTY) {
6
+ process.env.CI = 'true';
7
+ }
8
+
2
9
  import { program, CLIExitError } from "../dist/index.js";
3
10
 
4
11
  try {
package/dist/index.js CHANGED
@@ -31410,6 +31410,7 @@ async function runCommand(commandFn, options) {
31410
31410
  const { outroMessage } = await commandFn();
31411
31411
  Se(outroMessage || "");
31412
31412
  } catch (e$1) {
31413
+ if (e$1 instanceof CLIExitError) throw e$1;
31413
31414
  if (e$1 instanceof Error) M.error(e$1.stack ?? e$1.message);
31414
31415
  else M.error(String(e$1));
31415
31416
  throw new CLIExitError(1);
@@ -31474,11 +31475,11 @@ async function runTask(startMessage, operation, options) {
31474
31475
  //#region src/cli/utils/prompts.ts
31475
31476
  /**
31476
31477
  * Standard onCancel handler for prompt groups.
31477
- * Exits the process gracefully when the user cancels.
31478
+ gst * Throws CLIExitError(0) for graceful exit when the user cancels.
31478
31479
  */
31479
31480
  const onPromptCancel = () => {
31480
31481
  xe("Operation cancelled.");
31481
- process.exit(0);
31482
+ throw new CLIExitError(0);
31482
31483
  };
31483
31484
 
31484
31485
  //#endregion
@@ -39105,7 +39106,7 @@ async function promptForLinkAction() {
39105
39106
  });
39106
39107
  if (pD(action)) {
39107
39108
  xe("Operation cancelled.");
39108
- process.exit(0);
39109
+ throw new CLIExitError(0);
39109
39110
  }
39110
39111
  return action;
39111
39112
  }
@@ -39140,7 +39141,7 @@ async function promptForExistingProject(linkableProjects) {
39140
39141
  });
39141
39142
  if (pD(selectedProject)) {
39142
39143
  xe("Operation cancelled.");
39143
- process.exit(0);
39144
+ throw new CLIExitError(0);
39144
39145
  }
39145
39146
  return selectedProject;
39146
39147
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base44-preview/cli",
3
- "version": "0.0.22-pr.136.af86bf3",
3
+ "version": "0.0.22-pr.139.0eee87a",
4
4
  "description": "Base44 CLI - Unified interface for managing Base44 applications",
5
5
  "type": "module",
6
6
  "bin": {