type-coverage
Advanced tools
Comparing version 1.0.11 to 1.0.12
@@ -51,11 +51,12 @@ "use strict"; | ||
for (const file of include) { | ||
const stats = await statAsync(file); | ||
const currentPath = path.resolve(basename, file); | ||
const stats = await statAsync(currentPath); | ||
if (stats === undefined) { | ||
rules.push(path.resolve(basename, file)); | ||
rules.push(currentPath); | ||
} | ||
else if (stats.isDirectory()) { | ||
rules.push(`${file.endsWith('/') ? file.substring(0, file.length - 1) : file}/**/*.{ts,tsx}`); | ||
rules.push(`${currentPath.endsWith('/') ? currentPath.substring(0, currentPath.length - 1) : currentPath}/**/*.{ts,tsx}`); | ||
} | ||
else if (stats.isFile()) { | ||
rules.push(file); | ||
rules.push(currentPath); | ||
} | ||
@@ -62,0 +63,0 @@ } |
{ | ||
"name": "type-coverage", | ||
"version": "1.0.11", | ||
"version": "1.0.12", | ||
"description": "A CLI tool to check type coverage for typescript code", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
58503
988