@doccov/cli 0.30.0 → 0.30.1

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 +3 -2
  2. package/package.json +3 -3
package/dist/cli.js CHANGED
@@ -1293,7 +1293,7 @@ function computeStats(openpkg, doccov) {
1293
1293
  // src/reports/writer.ts
1294
1294
  import * as fs3 from "node:fs";
1295
1295
  import * as path5 from "node:path";
1296
- import { DEFAULT_REPORT_DIR, getDoccovDir, getReportPath } from "@doccov/sdk";
1296
+ import { DEFAULT_REPORT_DIR, findProjectRoot, getDoccovDir, getReportPath } from "@doccov/sdk";
1297
1297
  import chalk5 from "chalk";
1298
1298
  function writeReport(options) {
1299
1299
  const { format, content, outputPath, cwd = process.cwd(), silent = false } = options;
@@ -1304,7 +1304,8 @@ function writeReport(options) {
1304
1304
  fs3.mkdirSync(dir, { recursive: true });
1305
1305
  }
1306
1306
  fs3.writeFileSync(reportPath, content);
1307
- const relativePath = path5.relative(cwd, reportPath);
1307
+ const projectRoot = findProjectRoot(cwd);
1308
+ const relativePath = path5.relative(projectRoot, reportPath);
1308
1309
  if (!silent) {
1309
1310
  console.log(chalk5.green(`✓ Wrote ${format} report to ${relativePath}`));
1310
1311
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doccov/cli",
3
- "version": "0.30.0",
3
+ "version": "0.30.1",
4
4
  "description": "DocCov CLI - Documentation coverage and drift detection for TypeScript",
5
5
  "keywords": [
6
6
  "typescript",
@@ -48,10 +48,10 @@
48
48
  "dependencies": {
49
49
  "@ai-sdk/anthropic": "^1.0.0",
50
50
  "@ai-sdk/openai": "^1.0.0",
51
- "@doccov/sdk": "^0.30.0",
51
+ "@doccov/sdk": "^0.30.1",
52
52
  "@doccov/spec": "^0.27.0",
53
53
  "@inquirer/prompts": "^7.8.0",
54
- "@openpkg-ts/spec": "^0.12.0",
54
+ "@openpkg-ts/spec": "^0.19.0",
55
55
  "ai": "^4.0.0",
56
56
  "chalk": "^5.4.1",
57
57
  "cheerio": "^1.1.2",