@doccov/cli 0.4.3 → 0.4.4
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/dist/cli.js +4 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1555,7 +1555,8 @@ function detectEntryPoint(repoDir) {
|
|
|
1555
1555
|
}
|
|
1556
1556
|
function resolveToTs(baseDir, filePath) {
|
|
1557
1557
|
const normalized = filePath.replace(/^\.\//, "");
|
|
1558
|
-
|
|
1558
|
+
const isSourceTs = normalized.endsWith(".ts") && !normalized.endsWith(".d.ts") || normalized.endsWith(".tsx");
|
|
1559
|
+
if (isSourceTs) {
|
|
1559
1560
|
if (fs8.existsSync(path9.join(baseDir, normalized))) {
|
|
1560
1561
|
return normalized;
|
|
1561
1562
|
}
|
|
@@ -1585,6 +1586,8 @@ function resolveToTs(baseDir, filePath) {
|
|
|
1585
1586
|
candidates.push(`src/${baseName}.ts`);
|
|
1586
1587
|
}
|
|
1587
1588
|
for (const candidate of candidates) {
|
|
1589
|
+
if (candidate.endsWith(".d.ts"))
|
|
1590
|
+
continue;
|
|
1588
1591
|
if (fs8.existsSync(path9.join(baseDir, candidate))) {
|
|
1589
1592
|
return candidate;
|
|
1590
1593
|
}
|