@doccov/cli 0.4.1 → 0.4.3

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 (2) hide show
  1. package/dist/cli.js +5 -3
  2. package/package.json +2 -2
package/dist/cli.js CHANGED
@@ -567,10 +567,10 @@ function registerCheckCommand(program, dependencies = {}) {
567
567
  }
568
568
  }
569
569
  }
570
- throw new Error("Documentation coverage requirements not met.");
570
+ process.exit(1);
571
571
  } catch (commandError) {
572
572
  error(chalk.red("Error:"), commandError instanceof Error ? commandError.message : commandError);
573
- throw commandError instanceof Error ? commandError : new Error(String(commandError));
573
+ process.exit(1);
574
574
  }
575
575
  });
576
576
  }
@@ -2177,4 +2177,6 @@ registerScanCommand(program);
2177
2177
  program.command("*", { hidden: true }).action(() => {
2178
2178
  program.outputHelp();
2179
2179
  });
2180
- program.parseAsync();
2180
+ program.parseAsync().catch(() => {
2181
+ process.exit(1);
2182
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doccov/cli",
3
- "version": "0.4.1",
3
+ "version": "0.4.3",
4
4
  "description": "DocCov CLI - Documentation coverage and drift detection for TypeScript",
5
5
  "keywords": [
6
6
  "typescript",
@@ -49,7 +49,7 @@
49
49
  "@ai-sdk/anthropic": "^1.0.0",
50
50
  "@ai-sdk/openai": "^1.0.0",
51
51
  "@inquirer/prompts": "^7.8.0",
52
- "@doccov/sdk": "^0.3.1",
52
+ "@doccov/sdk": "^0.3.2",
53
53
  "@openpkg-ts/spec": "^0.3.1",
54
54
  "ai": "^4.0.0",
55
55
  "chalk": "^5.4.1",