type-coverage
Advanced tools
Comparing version 2.28.2 to 2.29.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const minimist = require("minimist"); | ||
const chalk = require("chalk"); | ||
const fs = require("fs"); | ||
@@ -64,3 +65,3 @@ const util = require("util"); | ||
} | ||
const { atLeast, debug, detail, enableCache, ignoreCatch, ignoreFiles, ignoreUnread, is, project, strict, update, updateIfHigher, ignoreNested, ignoreAsAssertion, ignoreTypeAssertion, ignoreNonNullAssertion, ignoreObject, ignoreEmptyType, showRelativePath, historyFile, noDetailWhenFailed, reportSemanticError, reportUnusedIgnore, cacheDirectory, notOnlyInCWD, } = await getTarget(argv); | ||
const { atLeast, debug, detail, enableCache, ignoreCatch, ignoreFiles, ignoreUnread, is, project, strict, update, updateIfHigher, ignoreNested, ignoreAsAssertion, ignoreTypeAssertion, ignoreNonNullAssertion, ignoreObject, ignoreEmptyType, showRelativePath, historyFile, noDetailWhenFailed, reportSemanticError, reportUnusedIgnore, cacheDirectory, notOnlyInCWD } = await getTarget(argv); | ||
const { correctCount, totalCount, anys } = await (0, type_coverage_core_1.lint)(project, { | ||
@@ -200,3 +201,3 @@ debug, | ||
cacheDirectory, | ||
notOnlyInCWD, | ||
notOnlyInCWD | ||
}; | ||
@@ -251,14 +252,15 @@ } | ||
if (percentString) { | ||
const diffInfo = `${correctCount} / ${totalCount}`; | ||
if (totalCount) { | ||
console.log(`${correctCount} / ${totalCount} ${percentString}%`); | ||
console.log(succeeded ? chalk.green(`(${diffInfo}) ${percentString}%`) : chalk.red(`(${diffInfo}) ${percentString}%`)); | ||
} | ||
else { | ||
console.log(`${correctCount} / ${totalCount}`); | ||
console.log(succeeded ? chalk.green(diffInfo) : chalk.red(diffInfo)); | ||
} | ||
} | ||
if (succeeded) { | ||
console.log('type-coverage success.'); | ||
console.log(chalk.green('type-coverage success.')); | ||
} | ||
else { | ||
console.log(error); | ||
console.log(chalk.red(error)); | ||
} | ||
@@ -265,0 +267,0 @@ } |
{ | ||
"name": "type-coverage", | ||
"version": "2.28.2", | ||
"version": "2.29.0", | ||
"description": "A CLI tool to check type coverage for typescript code", | ||
@@ -10,3 +10,4 @@ "repository": "https://github.com/plantain-00/type-coverage.git", | ||
"minimist": "1", | ||
"type-coverage-core": "^2.28.1" | ||
"type-coverage-core": "^2.28.1", | ||
"chalk": "4.1.2" | ||
}, | ||
@@ -13,0 +14,0 @@ "publishConfig": { |
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
12457
280
3
+ Addedchalk@4.1.2
+ Addedansi-styles@4.3.0(transitive)
+ Addedchalk@4.1.2(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedhas-flag@4.0.0(transitive)
+ Addedsupports-color@7.2.0(transitive)