fork-ts-checker-webpack-plugin 7.2.9 → 7.2.12
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.
|
@@ -14,9 +14,9 @@ function createWebpackFormatter(formatter) {
|
|
|
14
14
|
const color = issue.severity === 'warning' ? chalk_1.default.yellow.bold : chalk_1.default.red.bold;
|
|
15
15
|
const severity = issue.severity.toUpperCase();
|
|
16
16
|
if (issue.file) {
|
|
17
|
-
let location = chalk_1.default.
|
|
17
|
+
let location = chalk_1.default.bold((0, relative_to_context_1.relativeToContext)(issue.file, process.cwd()));
|
|
18
18
|
if (issue.location) {
|
|
19
|
-
location +=
|
|
19
|
+
location += `:${chalk_1.default.green.bold((0, issue_1.formatIssueLocation)(issue.location))}`;
|
|
20
20
|
}
|
|
21
21
|
return [`${color(severity)} in ${location}`, formatter(issue), ''].join(os_1.default.EOL);
|
|
22
22
|
}
|
|
@@ -4,5 +4,5 @@ interface IssueLocation {
|
|
|
4
4
|
end: IssuePosition;
|
|
5
5
|
}
|
|
6
6
|
declare function compareIssueLocations(locationA?: IssueLocation, locationB?: IssueLocation): number;
|
|
7
|
-
declare function formatIssueLocation(
|
|
7
|
+
declare function formatIssueLocation(location: IssueLocation): string;
|
|
8
8
|
export { IssueLocation, compareIssueLocations, formatIssueLocation };
|
|
@@ -16,21 +16,7 @@ function compareIssueLocations(locationA, locationB) {
|
|
|
16
16
|
(0, issue_position_1.compareIssuePositions)(locationA.end, locationB.end));
|
|
17
17
|
}
|
|
18
18
|
exports.compareIssueLocations = compareIssueLocations;
|
|
19
|
-
function formatIssueLocation(
|
|
20
|
-
|
|
21
|
-
// the same line
|
|
22
|
-
if (!end.column || start.column === end.column) {
|
|
23
|
-
// the same column
|
|
24
|
-
return `${start.line}:${start.column}`;
|
|
25
|
-
}
|
|
26
|
-
else {
|
|
27
|
-
// different column
|
|
28
|
-
return `${start.line}:${start.column}-${end.column}`;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
// different lines
|
|
33
|
-
return `${start.line}:${start.column}-${end.line}:${end.column}`;
|
|
34
|
-
}
|
|
19
|
+
function formatIssueLocation(location) {
|
|
20
|
+
return `${location.start.line}:${location.start.column}`;
|
|
35
21
|
}
|
|
36
22
|
exports.formatIssueLocation = formatIssueLocation;
|
|
@@ -19,7 +19,7 @@ class IssueWebpackError extends webpack_1.default.WebpackError {
|
|
|
19
19
|
if (issue.file) {
|
|
20
20
|
this.file = (0, relative_to_context_1.relativeToContext)(issue.file, process.cwd());
|
|
21
21
|
if (issue.location) {
|
|
22
|
-
this.file +=
|
|
22
|
+
this.file += `:${chalk_1.default.green.bold((0, issue_location_1.formatIssueLocation)(issue.location))}`;
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
Error.captureStackTrace(this, this.constructor);
|
package/lib/plugin.js
CHANGED
|
@@ -70,7 +70,7 @@ exports.ForkTsCheckerWebpackPlugin = ForkTsCheckerWebpackPlugin;
|
|
|
70
70
|
/**
|
|
71
71
|
* Current version of the plugin
|
|
72
72
|
*/
|
|
73
|
-
ForkTsCheckerWebpackPlugin.version = '7.2.
|
|
73
|
+
ForkTsCheckerWebpackPlugin.version = '7.2.12'; // will be replaced by the @semantic-release/exec
|
|
74
74
|
/**
|
|
75
75
|
* Default pools for the plugin concurrency limit
|
|
76
76
|
*/
|
|
@@ -9,7 +9,7 @@ const chokidar_1 = __importDefault(require("chokidar"));
|
|
|
9
9
|
const minimatch_1 = __importDefault(require("minimatch"));
|
|
10
10
|
const files_change_1 = require("../files-change");
|
|
11
11
|
const infrastructure_logger_1 = require("../infrastructure-logger");
|
|
12
|
-
const BUILTIN_IGNORED_DIRS = ['
|
|
12
|
+
const BUILTIN_IGNORED_DIRS = ['.git'];
|
|
13
13
|
function createIsIgnored(ignored, excluded) {
|
|
14
14
|
const ignoredPatterns = ignored ? (Array.isArray(ignored) ? ignored : [ignored]) : [];
|
|
15
15
|
const ignoredFunctions = ignoredPatterns.map((pattern) => {
|