@doccov/cli 0.32.0 → 0.33.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 (3) hide show
  1. package/dist/drift.js +6 -1
  2. package/package.json +2 -3
  3. package/dist/cli.js +0 -178971
package/dist/drift.js CHANGED
@@ -175795,10 +175795,15 @@ function resolveToSource(cwd, filePath) {
175795
175795
  const srcPath = normalized.replace(new RegExp(`^${outDir}/`), "src/");
175796
175796
  candidates.push(srcPath.replace(/\.js$/, ".ts"));
175797
175797
  candidates.push(srcPath.replace(/\.d\.ts$/, ".ts"));
175798
+ if (normalized.startsWith(`${outDir}/src/`)) {
175799
+ const stripped = normalized.replace(new RegExp(`^${outDir}/src/`), "src/");
175800
+ candidates.push(stripped.replace(/\.js$/, ".ts"));
175801
+ candidates.push(stripped.replace(/\.d\.ts$/, ".ts"));
175802
+ }
175798
175803
  }
175799
175804
  }
175800
175805
  for (const c2 of candidates) {
175801
- if (/\.d\.[mc]?ts$/.test(c2))
175806
+ if (!/\.[mc]?ts$/.test(c2) || /\.d\.[mc]?ts$/.test(c2))
175802
175807
  continue;
175803
175808
  const full = path14.join(cwd, c2);
175804
175809
  if (existsSync11(full))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doccov/cli",
3
- "version": "0.32.0",
3
+ "version": "0.33.1",
4
4
  "description": "DocCov CLI - Documentation coverage and drift detection for TypeScript",
5
5
  "keywords": [
6
6
  "typescript",
@@ -22,7 +22,6 @@
22
22
  "main": "./dist/index.js",
23
23
  "types": "./dist/index.d.ts",
24
24
  "bin": {
25
- "doccov": "./dist/cli.js",
26
25
  "drift": "./dist/drift.js"
27
26
  },
28
27
  "exports": {
@@ -38,7 +37,7 @@
38
37
  "scripts": {
39
38
  "build": "bunup",
40
39
  "dev": "bunup --watch",
41
- "cli": "bun run src/cli.ts",
40
+ "cli": "bun run src/drift.ts",
42
41
  "lint": "biome check src/",
43
42
  "lint:fix": "biome check --write src/",
44
43
  "format": "biome format --write src/",