fork-ts-checker-webpack-plugin 9.1.0 → 9.2.0
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/lib/files-change.js +5 -6
- package/lib/formatter/basic-formatter.js +1 -2
- package/lib/formatter/code-frame-formatter.js +1 -2
- package/lib/formatter/formatter-config.js +1 -2
- package/lib/formatter/stats-formatter.js +1 -2
- package/lib/formatter/webpack-formatter.js +1 -2
- package/lib/hooks/intercept-done-to-get-dev-server-tap.js +1 -2
- package/lib/hooks/tap-after-compile-to-add-dependencies.js +1 -2
- package/lib/hooks/tap-after-compile-to-get-issues.js +1 -2
- package/lib/hooks/tap-after-environment-to-patch-watching.js +1 -2
- package/lib/hooks/tap-done-to-async-get-issues.js +1 -2
- package/lib/hooks/tap-error-to-log-message.js +1 -2
- package/lib/hooks/tap-start-to-run-workers.js +1 -2
- package/lib/hooks/tap-stop-to-terminate-workers.js +1 -2
- package/lib/infrastructure-logger.js +1 -2
- package/lib/issue/issue-config.js +1 -2
- package/lib/issue/issue-location.js +2 -3
- package/lib/issue/issue-match.js +3 -4
- package/lib/issue/issue-position.js +1 -2
- package/lib/issue/issue-predicate.js +2 -3
- package/lib/issue/issue-severity.js +2 -3
- package/lib/issue/issue-webpack-error.js +17 -7
- package/lib/issue/issue.js +2 -3
- package/lib/plugin-config.js +1 -2
- package/lib/plugin-hooks.d.ts +4 -4
- package/lib/plugin-hooks.js +1 -2
- package/lib/plugin-pools.js +17 -7
- package/lib/plugin-state.js +1 -2
- package/lib/plugin.d.ts +2 -2
- package/lib/plugin.js +24 -9
- package/lib/rpc/expose-rpc.js +1 -2
- package/lib/rpc/rpc-worker.d.ts +0 -1
- package/lib/rpc/rpc-worker.js +19 -10
- package/lib/rpc/wrap-rpc.d.ts +0 -1
- package/lib/rpc/wrap-rpc.js +1 -2
- package/lib/typescript/type-script-support.js +19 -10
- package/lib/typescript/type-script-worker-config.js +1 -2
- package/lib/typescript/worker/lib/artifacts.js +20 -11
- package/lib/typescript/worker/lib/config.js +47 -19
- package/lib/typescript/worker/lib/dependencies.js +19 -10
- package/lib/typescript/worker/lib/diagnostics.js +35 -13
- package/lib/typescript/worker/lib/emit.js +1 -2
- package/lib/typescript/worker/lib/file-system/file-system.d.ts +0 -1
- package/lib/typescript/worker/lib/file-system/mem-file-system.js +1 -0
- package/lib/typescript/worker/lib/file-system/real-file-system.js +17 -7
- package/lib/typescript/worker/lib/host/compiler-host.js +1 -2
- package/lib/typescript/worker/lib/host/watch-compiler-host.js +1 -2
- package/lib/typescript/worker/lib/host/watch-solution-builder-host.js +1 -2
- package/lib/typescript/worker/lib/performance.js +3 -4
- package/lib/typescript/worker/lib/program/program.js +2 -3
- package/lib/typescript/worker/lib/program/solution-builder.js +2 -3
- package/lib/typescript/worker/lib/program/watch-program.js +3 -4
- package/lib/typescript/worker/lib/tracing.js +3 -4
- package/lib/typescript/worker/lib/tsbuildinfo.js +20 -11
- package/lib/utils/async/controlled-promise.js +1 -2
- package/lib/utils/async/is-pending.js +1 -2
- package/lib/utils/async/pool.js +1 -2
- package/lib/utils/async/wait.js +1 -2
- package/lib/utils/path/forward-slash.js +1 -2
- package/lib/utils/path/is-inside-another-path.js +1 -2
- package/lib/utils/path/relative-to-context.js +1 -2
- package/lib/watch/inclusive-node-watch-file-system.js +2 -2
- package/lib/watch/watch-file-system.d.ts +0 -1
- package/package.json +48 -52
|
@@ -15,15 +15,27 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
36
|
+
exports.invalidateTsBuildInfo = invalidateTsBuildInfo;
|
|
37
|
+
exports.emitTsBuildInfoIfNeeded = emitTsBuildInfoIfNeeded;
|
|
38
|
+
exports.getTsBuildInfoEmitPath = getTsBuildInfoEmitPath;
|
|
27
39
|
const path = __importStar(require("path"));
|
|
28
40
|
const config_1 = require("./config");
|
|
29
41
|
const system_1 = require("./system");
|
|
@@ -46,7 +58,6 @@ function invalidateTsBuildInfo() {
|
|
|
46
58
|
}
|
|
47
59
|
}
|
|
48
60
|
}
|
|
49
|
-
exports.invalidateTsBuildInfo = invalidateTsBuildInfo;
|
|
50
61
|
function emitTsBuildInfoIfNeeded(builderProgram) {
|
|
51
62
|
const parsedConfig = (0, config_1.getParsedConfig)();
|
|
52
63
|
if (worker_config_1.config.mode !== 'readonly' && parsedConfig && isIncrementalEnabled(parsedConfig.options)) {
|
|
@@ -58,7 +69,6 @@ function emitTsBuildInfoIfNeeded(builderProgram) {
|
|
|
58
69
|
}
|
|
59
70
|
}
|
|
60
71
|
}
|
|
61
|
-
exports.emitTsBuildInfoIfNeeded = emitTsBuildInfoIfNeeded;
|
|
62
72
|
function getTsBuildInfoEmitPath(compilerOptions) {
|
|
63
73
|
if (typeof typescript_1.typescript.getTsBuildInfoEmitOutputFilePath === 'function') {
|
|
64
74
|
return typescript_1.typescript.getTsBuildInfoEmitOutputFilePath(compilerOptions);
|
|
@@ -90,7 +100,6 @@ function getTsBuildInfoEmitPath(compilerOptions) {
|
|
|
90
100
|
}
|
|
91
101
|
return buildInfoExtensionLess + '.tsbuildinfo';
|
|
92
102
|
}
|
|
93
|
-
exports.getTsBuildInfoEmitPath = getTsBuildInfoEmitPath;
|
|
94
103
|
function isIncrementalEnabled(compilerOptions) {
|
|
95
104
|
return Boolean((compilerOptions.incremental || compilerOptions.composite) && !compilerOptions.outFile);
|
|
96
105
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createControlledPromise =
|
|
3
|
+
exports.createControlledPromise = createControlledPromise;
|
|
4
4
|
function createControlledPromise() {
|
|
5
5
|
let resolve = () => undefined;
|
|
6
6
|
let reject = () => undefined;
|
|
@@ -14,4 +14,3 @@ function createControlledPromise() {
|
|
|
14
14
|
reject,
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
|
-
exports.createControlledPromise = createControlledPromise;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isPending =
|
|
3
|
+
exports.isPending = isPending;
|
|
4
4
|
function isPending(promise, timeout = 100) {
|
|
5
5
|
return Promise.race([
|
|
6
6
|
promise.then(() => false).catch(() => false),
|
|
7
7
|
new Promise((resolve) => setTimeout(() => resolve(true), timeout)),
|
|
8
8
|
]);
|
|
9
9
|
}
|
|
10
|
-
exports.isPending = isPending;
|
package/lib/utils/async/pool.js
CHANGED
|
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.createPool =
|
|
12
|
+
exports.createPool = createPool;
|
|
13
13
|
const abort_error_1 = require("./abort-error");
|
|
14
14
|
function createPool(size) {
|
|
15
15
|
let pendingPromises = [];
|
|
@@ -44,4 +44,3 @@ function createPool(size) {
|
|
|
44
44
|
};
|
|
45
45
|
return pool;
|
|
46
46
|
}
|
|
47
|
-
exports.createPool = createPool;
|
package/lib/utils/async/wait.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.forwardSlash =
|
|
6
|
+
exports.forwardSlash = forwardSlash;
|
|
7
7
|
const path_1 = __importDefault(require("path"));
|
|
8
8
|
/**
|
|
9
9
|
* Replaces backslashes with one forward slash
|
|
@@ -12,4 +12,3 @@ const path_1 = __importDefault(require("path"));
|
|
|
12
12
|
function forwardSlash(input) {
|
|
13
13
|
return path_1.default.normalize(input).replace(/\\+/g, '/');
|
|
14
14
|
}
|
|
15
|
-
exports.forwardSlash = forwardSlash;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isInsideAnotherPath =
|
|
3
|
+
exports.isInsideAnotherPath = isInsideAnotherPath;
|
|
4
4
|
const path_1 = require("path");
|
|
5
5
|
function isInsideAnotherPath(parent, directory) {
|
|
6
6
|
const relativePart = (0, path_1.relative)(parent, directory);
|
|
@@ -19,4 +19,3 @@ function isInsideAnotherPath(parent, directory) {
|
|
|
19
19
|
// Last option, must be subfolder.
|
|
20
20
|
return true;
|
|
21
21
|
}
|
|
22
|
-
exports.isInsideAnotherPath = isInsideAnotherPath;
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.relativeToContext =
|
|
6
|
+
exports.relativeToContext = relativeToContext;
|
|
7
7
|
const path_1 = __importDefault(require("path"));
|
|
8
8
|
const forward_slash_1 = require("./forward-slash");
|
|
9
9
|
function relativeToContext(file, context) {
|
|
@@ -13,4 +13,3 @@ function relativeToContext(file, context) {
|
|
|
13
13
|
}
|
|
14
14
|
return fileInContext;
|
|
15
15
|
}
|
|
16
|
-
exports.relativeToContext = relativeToContext;
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.InclusiveNodeWatchFileSystem = void 0;
|
|
7
7
|
const path_1 = require("path");
|
|
8
8
|
const chokidar_1 = __importDefault(require("chokidar"));
|
|
9
|
-
const minimatch_1 =
|
|
9
|
+
const minimatch_1 = require("minimatch");
|
|
10
10
|
const files_change_1 = require("../files-change");
|
|
11
11
|
const infrastructure_logger_1 = require("../infrastructure-logger");
|
|
12
12
|
const is_inside_another_path_1 = require("../utils/path/is-inside-another-path");
|
|
@@ -16,7 +16,7 @@ function createIsIgnored(ignored, excluded) {
|
|
|
16
16
|
const ignoredFunctions = ignoredPatterns.map((pattern) => {
|
|
17
17
|
// ensure patterns are valid - see https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/issues/594
|
|
18
18
|
if (typeof pattern === 'string') {
|
|
19
|
-
return (path) => (0, minimatch_1.
|
|
19
|
+
return (path) => (0, minimatch_1.minimatch)(path, pattern);
|
|
20
20
|
}
|
|
21
21
|
else if (pattern instanceof RegExp) {
|
|
22
22
|
return (path) => pattern.test(path);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fork-ts-checker-webpack-plugin",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.2.0",
|
|
4
4
|
"description": "Runs typescript type checker and linter on separate process.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -32,14 +32,13 @@
|
|
|
32
32
|
"types": "lib/index.d.ts",
|
|
33
33
|
"scripts": {
|
|
34
34
|
"build": "cross-env rimraf lib && cross-env tsc --version && cross-env tsc",
|
|
35
|
-
"lint": "cross-env eslint ./src ./test
|
|
36
|
-
"test": "
|
|
35
|
+
"lint": "cross-env eslint ./src ./test",
|
|
36
|
+
"test": "npm run build && npm run test:unit && npm run test:e2e",
|
|
37
37
|
"test:unit": "cross-env jest --config=test/unit/jest.config.js",
|
|
38
|
-
"test:e2e": "npm pack && cross-env
|
|
39
|
-
"precommit": "cross-env lint-staged && yarn build && yarn test:unit",
|
|
38
|
+
"test:e2e": "npm pack && cross-env jest --config=test/e2e/jest.config.js --ci -i -b",
|
|
40
39
|
"commit": "cross-env git-cz",
|
|
41
40
|
"semantic-release": "semantic-release",
|
|
42
|
-
"prepare": "husky
|
|
41
|
+
"prepare": "husky"
|
|
43
42
|
},
|
|
44
43
|
"commitlint": {
|
|
45
44
|
"extends": [
|
|
@@ -55,67 +54,64 @@
|
|
|
55
54
|
}
|
|
56
55
|
},
|
|
57
56
|
"dependencies": {
|
|
58
|
-
"@babel/code-frame": "^7.
|
|
57
|
+
"@babel/code-frame": "^7.29.7",
|
|
59
58
|
"chalk": "^4.1.2",
|
|
60
|
-
"chokidar": "^4.0.
|
|
61
|
-
"cosmiconfig": "^
|
|
62
|
-
"deepmerge": "^4.
|
|
63
|
-
"fs-extra": "^
|
|
64
|
-
"memfs": "^3.
|
|
65
|
-
"minimatch": "^
|
|
59
|
+
"chokidar": "^4.0.3",
|
|
60
|
+
"cosmiconfig": "^9.0.2",
|
|
61
|
+
"deepmerge": "^4.3.1",
|
|
62
|
+
"fs-extra": "^11.4.1",
|
|
63
|
+
"memfs": "^3.6.0",
|
|
64
|
+
"minimatch": "^9.0.9",
|
|
66
65
|
"node-abort-controller": "^3.0.1",
|
|
67
|
-
"schema-utils": "^
|
|
68
|
-
"semver": "^7.
|
|
69
|
-
"tapable": "^2.
|
|
66
|
+
"schema-utils": "^4.8.3",
|
|
67
|
+
"semver": "^7.8.6",
|
|
68
|
+
"tapable": "^2.3.4"
|
|
70
69
|
},
|
|
71
70
|
"peerDependencies": {
|
|
72
71
|
"typescript": ">3.6.0",
|
|
73
72
|
"webpack": "^5.11.0"
|
|
74
73
|
},
|
|
75
74
|
"devDependencies": {
|
|
76
|
-
"@commitlint/config-conventional": "^
|
|
77
|
-
"@
|
|
78
|
-
"@semantic-release/
|
|
79
|
-
"@semantic-release/
|
|
80
|
-
"@semantic-release/
|
|
81
|
-
"@semantic-release/
|
|
75
|
+
"@commitlint/config-conventional": "^20.5.3",
|
|
76
|
+
"@eslint/js": "^9.39.5",
|
|
77
|
+
"@semantic-release/commit-analyzer": "^13.0.1",
|
|
78
|
+
"@semantic-release/exec": "^7.1.0",
|
|
79
|
+
"@semantic-release/github": "^12.0.11",
|
|
80
|
+
"@semantic-release/npm": "^13.2.0",
|
|
81
|
+
"@semantic-release/release-notes-generator": "^14.1.1",
|
|
82
82
|
"@types/babel__code-frame": "^7.0.3",
|
|
83
|
-
"@types/
|
|
84
|
-
"@types/
|
|
85
|
-
"@types/
|
|
86
|
-
"@types/
|
|
87
|
-
"@types/
|
|
88
|
-
"@
|
|
89
|
-
"@
|
|
90
|
-
"@
|
|
91
|
-
"
|
|
92
|
-
"@typescript-eslint/eslint-plugin": "^5.10.1",
|
|
93
|
-
"@typescript-eslint/parser": "^5.10.1",
|
|
94
|
-
"commitlint": "^16.1.0",
|
|
83
|
+
"@types/fs-extra": "^11.0.4",
|
|
84
|
+
"@types/jest": "^30.0.0",
|
|
85
|
+
"@types/json-schema": "^7.0.15",
|
|
86
|
+
"@types/node": "^22.20.5",
|
|
87
|
+
"@types/semver": "^7.8.0",
|
|
88
|
+
"@typescript-eslint/eslint-plugin": "^8.72.2",
|
|
89
|
+
"@typescript-eslint/parser": "^8.72.2",
|
|
90
|
+
"@yarnpkg/cli-dist": "4.7.0",
|
|
91
|
+
"commitlint": "^20.5.3",
|
|
95
92
|
"cross-env": "^7.0.3",
|
|
96
|
-
"eslint": "^
|
|
97
|
-
"eslint-plugin-import": "^2.
|
|
98
|
-
"eslint-plugin-
|
|
99
|
-
"eslint-plugin-prettier": "^
|
|
100
|
-
"git-cz": "^4.
|
|
101
|
-
"husky": "^
|
|
102
|
-
"jest": "^
|
|
103
|
-
"jest-circus": "^
|
|
104
|
-
"jest-environment-node": "^
|
|
93
|
+
"eslint": "^9.39.5",
|
|
94
|
+
"eslint-plugin-import": "^2.32.0",
|
|
95
|
+
"eslint-plugin-n": "^17.24.0",
|
|
96
|
+
"eslint-plugin-prettier": "^5.5.7",
|
|
97
|
+
"git-cz": "^4.9.0",
|
|
98
|
+
"husky": "^9.1.7",
|
|
99
|
+
"jest": "^30.5.2",
|
|
100
|
+
"jest-circus": "^30.5.2",
|
|
101
|
+
"jest-environment-node": "^30.5.2",
|
|
105
102
|
"json-schema": "^0.4.0",
|
|
106
103
|
"karton": "^0.4.1",
|
|
107
|
-
"lint-staged": "^
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"semantic-release": "^17.4.4",
|
|
104
|
+
"lint-staged": "^15.5.2",
|
|
105
|
+
"prettier": "^3.10.1",
|
|
106
|
+
"rimraf": "^5.0.10",
|
|
107
|
+
"semantic-release": "^25.0.9",
|
|
112
108
|
"strip-ansi": "^6.0.0",
|
|
113
|
-
"ts-jest": "^
|
|
114
|
-
"typescript": "
|
|
115
|
-
"webpack": "^5.
|
|
109
|
+
"ts-jest": "^29.4.15",
|
|
110
|
+
"typescript": "6.0.3",
|
|
111
|
+
"webpack": "^5.112.2"
|
|
116
112
|
},
|
|
117
113
|
"engines": {
|
|
118
114
|
"node": ">=14.21.3"
|
|
119
115
|
},
|
|
120
|
-
"packageManager": "
|
|
116
|
+
"packageManager": "npm@11.21.2"
|
|
121
117
|
}
|