fork-ts-checker-webpack-plugin 5.2.0 → 5.2.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.
|
@@ -60,4 +60,4 @@ class ForkTsCheckerWebpackPlugin {
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
exports.ForkTsCheckerWebpackPlugin = ForkTsCheckerWebpackPlugin;
|
|
63
|
-
ForkTsCheckerWebpackPlugin.version = '5.2.
|
|
63
|
+
ForkTsCheckerWebpackPlugin.version = '5.2.1'; // will be replaced by the @semantic-release/exec
|
|
@@ -8,13 +8,13 @@ const chalk_1 = __importDefault(require("chalk"));
|
|
|
8
8
|
const path_1 = __importDefault(require("path"));
|
|
9
9
|
const issue_1 = require("../issue");
|
|
10
10
|
const forwardSlash_1 = __importDefault(require("../utils/path/forwardSlash"));
|
|
11
|
-
function createWebpackFormatter(formatter
|
|
11
|
+
function createWebpackFormatter(formatter) {
|
|
12
12
|
// mimics webpack error formatter
|
|
13
13
|
return function webpackFormatter(issue) {
|
|
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 = forwardSlash_1.default(path_1.default.relative(
|
|
17
|
+
let location = forwardSlash_1.default(path_1.default.relative(process.cwd(), issue.file));
|
|
18
18
|
if (issue.location) {
|
|
19
19
|
location += `:${issue_1.formatIssueLocation(issue.location)}`;
|
|
20
20
|
}
|
|
@@ -59,7 +59,7 @@ function tapDoneToAsyncGetIssues(compiler, configuration, state) {
|
|
|
59
59
|
issues = issues.filter(configuration.issue.predicate);
|
|
60
60
|
// modify list of issues in the plugin hooks
|
|
61
61
|
issues = hooks.issues.call(issues, stats.compilation);
|
|
62
|
-
const formatter = WebpackFormatter_1.createWebpackFormatter(configuration.formatter
|
|
62
|
+
const formatter = WebpackFormatter_1.createWebpackFormatter(configuration.formatter);
|
|
63
63
|
if (issues.length) {
|
|
64
64
|
// follow webpack's approach - one process.write to stderr with all errors and warnings
|
|
65
65
|
configuration.logger.issues.error(issues.map((issue) => formatter(issue)).join('\n'));
|
|
@@ -42,7 +42,7 @@ function createRealFileSystem(caseSensitive = false) {
|
|
|
42
42
|
if (!readFileCache.has(normalizedPath)) {
|
|
43
43
|
const stats = readStats(normalizedPath);
|
|
44
44
|
if (stats && stats.isFile()) {
|
|
45
|
-
readFileCache.set(normalizedPath, fs_extra_1.default.readFileSync(normalizedPath, { encoding }).toString());
|
|
45
|
+
readFileCache.set(normalizedPath, fs_extra_1.default.readFileSync(normalizedPath, { encoding: encoding }).toString());
|
|
46
46
|
}
|
|
47
47
|
else {
|
|
48
48
|
readFileCache.set(normalizedPath, undefined);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fork-ts-checker-webpack-plugin",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.1",
|
|
4
4
|
"description": "Runs typescript type checker and linter on separate process.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"fast",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"build": "cross-env rimraf lib && cross-env tsc --version && cross-env tsc",
|
|
35
35
|
"lint": "cross-env eslint ./src ./test --ext .ts",
|
|
36
36
|
"test": "yarn build && yarn test:unit && yarn test:e2e",
|
|
37
|
-
"test:unit": "cross-env jest unit",
|
|
38
|
-
"test:e2e": "npm pack && cross-env jest e2e --ci
|
|
37
|
+
"test:unit": "cross-env jest --config=test/unit/jest.config.js",
|
|
38
|
+
"test:e2e": "npm pack && cross-env jest --config=test/e2e/jest.config.js --ci -i -b",
|
|
39
39
|
"precommit": "cross-env lint-staged && yarn build && yarn test:unit",
|
|
40
40
|
"commit": "cross-env git-cz",
|
|
41
41
|
"semantic-release": "semantic-release"
|
|
@@ -73,43 +73,45 @@
|
|
|
73
73
|
"tapable": "^1.0.0"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
|
-
"@commitlint/config-conventional": "^
|
|
76
|
+
"@commitlint/config-conventional": "^11.0.0",
|
|
77
77
|
"@semantic-release/commit-analyzer": "^8.0.1",
|
|
78
78
|
"@semantic-release/exec": "^5.0.0",
|
|
79
|
-
"@semantic-release/github": "^7.
|
|
80
|
-
"@semantic-release/npm": "^7.0.
|
|
79
|
+
"@semantic-release/github": "^7.1.1",
|
|
80
|
+
"@semantic-release/npm": "^7.0.6",
|
|
81
81
|
"@semantic-release/release-notes-generator": "^9.0.1",
|
|
82
|
-
"@types/babel__code-frame": "^7.0.
|
|
82
|
+
"@types/babel__code-frame": "^7.0.2",
|
|
83
83
|
"@types/cross-spawn": "^6.0.2",
|
|
84
|
-
"@types/eslint": "^
|
|
85
|
-
"@types/fs-extra": "^
|
|
86
|
-
"@types/jest": "^
|
|
84
|
+
"@types/eslint": "^7.2.4",
|
|
85
|
+
"@types/fs-extra": "^9.0.2",
|
|
86
|
+
"@types/jest": "^26.0.14",
|
|
87
87
|
"@types/minimatch": "^3.0.1",
|
|
88
|
-
"@types/mock-fs": "^4.
|
|
89
|
-
"@types/node": "^
|
|
88
|
+
"@types/mock-fs": "^4.13.0",
|
|
89
|
+
"@types/node": "^14.11.10",
|
|
90
90
|
"@types/rimraf": "^3.0.0",
|
|
91
|
-
"@types/semver": "^7.
|
|
92
|
-
"@types/webpack": "^4.41.
|
|
91
|
+
"@types/semver": "^7.3.4",
|
|
92
|
+
"@types/webpack": "^4.41.22",
|
|
93
93
|
"@typescript-eslint/eslint-plugin": "^2.27.0",
|
|
94
94
|
"@typescript-eslint/parser": "^2.27.0",
|
|
95
|
-
"commitlint": "^
|
|
95
|
+
"commitlint": "^11.0.0",
|
|
96
96
|
"cross-env": "^7.0.2",
|
|
97
|
-
"cross-spawn": "^7.0.
|
|
97
|
+
"cross-spawn": "^7.0.3",
|
|
98
98
|
"eslint": "^6.8.0",
|
|
99
|
-
"eslint-config-prettier": "^6.
|
|
99
|
+
"eslint-config-prettier": "^6.13.0",
|
|
100
100
|
"eslint-plugin-node": "^11.1.0",
|
|
101
|
-
"eslint-plugin-prettier": "^3.1.
|
|
102
|
-
"git-cz": "^4.
|
|
103
|
-
"husky": "^4.
|
|
104
|
-
"jest": "^
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"
|
|
101
|
+
"eslint-plugin-prettier": "^3.1.4",
|
|
102
|
+
"git-cz": "^4.7.1",
|
|
103
|
+
"husky": "^4.3.0",
|
|
104
|
+
"jest": "^26.5.3",
|
|
105
|
+
"jest-circus": "^26.5.3",
|
|
106
|
+
"jest-environment-node": "^26.5.2",
|
|
107
|
+
"lint-staged": "^10.4.2",
|
|
108
|
+
"mock-fs": "^4.13.0",
|
|
109
|
+
"prettier": "^2.1.2",
|
|
108
110
|
"rimraf": "^3.0.2",
|
|
109
|
-
"semantic-release": "^17.
|
|
111
|
+
"semantic-release": "^17.2.1",
|
|
110
112
|
"strip-ansi": "^6.0.0",
|
|
111
113
|
"tree-kill": "^1.2.2",
|
|
112
|
-
"ts-jest": "^
|
|
114
|
+
"ts-jest": "^26.4.1",
|
|
113
115
|
"typescript": "^3.8.3",
|
|
114
116
|
"webpack": "^4.42.1"
|
|
115
117
|
},
|