@base44-preview/cli 0.0.18-pr.87.0e26e0f → 0.0.19-pr.112.3ef73f2

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.
Files changed (4) hide show
  1. package/bin/dev.js +2 -20
  2. package/bin/run.js +2 -20
  3. package/dist/index.js +8869 -8890
  4. package/package.json +1 -1
package/bin/dev.js CHANGED
@@ -1,6 +1,5 @@
1
1
  #!/usr/bin/env tsx
2
- import { CommanderError } from "commander";
3
- import { program, CLIExitError, isJsonMode, outputJsonError } from "../src/cli/index.ts";
2
+ import { program, CLIExitError } from "../src/cli/index.ts";
4
3
 
5
4
  try {
6
5
  await program.parseAsync();
@@ -8,23 +7,6 @@ try {
8
7
  if (error instanceof CLIExitError) {
9
8
  process.exit(error.code);
10
9
  }
11
-
12
- if (error instanceof CommanderError) {
13
- if (isJsonMode()) {
14
- outputJsonError(error.message, error.code);
15
- }
16
- // Non-JSON mode: Commander already output the error via configureOutput
17
- process.exit(error.exitCode);
18
- }
19
-
20
- // Handle all other errors
21
- if (isJsonMode()) {
22
- outputJsonError(error instanceof Error ? error : String(error));
23
- process.exit(1);
24
- }
25
-
26
- // Non-JSON mode: show clean error message
27
- const message = error instanceof Error ? error.message : String(error);
28
- console.error(`error: ${message}`);
10
+ console.error(error);
29
11
  process.exit(1);
30
12
  }
package/bin/run.js CHANGED
@@ -1,6 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { CommanderError } from "commander";
3
- import { program, CLIExitError, isJsonMode, outputJsonError } from "../dist/index.js";
2
+ import { program, CLIExitError } from "../dist/index.js";
4
3
 
5
4
  try {
6
5
  await program.parseAsync();
@@ -8,23 +7,6 @@ try {
8
7
  if (error instanceof CLIExitError) {
9
8
  process.exit(error.code);
10
9
  }
11
-
12
- if (error instanceof CommanderError) {
13
- if (isJsonMode()) {
14
- outputJsonError(error.message, error.code);
15
- }
16
- // Non-JSON mode: Commander already output the error via configureOutput
17
- process.exit(error.exitCode);
18
- }
19
-
20
- // Handle all other errors
21
- if (isJsonMode()) {
22
- outputJsonError(error instanceof Error ? error : String(error));
23
- process.exit(1);
24
- }
25
-
26
- // Non-JSON mode: show clean error message
27
- const message = error instanceof Error ? error.message : String(error);
28
- console.error(`error: ${message}`);
10
+ console.error(error);
29
11
  process.exit(1);
30
12
  }