fork-ts-checker-webpack-plugin 9.0.2 → 9.1.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/README.md +3 -0
- package/lib/formatter/formatter-config.d.ts +1 -1
- package/lib/formatter/formatter-options.d.ts +4 -4
- package/lib/formatter/formatter.d.ts +2 -2
- package/lib/formatter/index.js +5 -1
- package/lib/hooks/tap-done-to-async-get-issues.js +1 -1
- package/lib/issue/index.js +5 -1
- package/lib/issue/issue-match.d.ts +1 -1
- package/lib/issue/issue-options.d.ts +1 -1
- package/lib/issue/issue-predicate.d.ts +1 -1
- package/lib/issue/issue-severity.d.ts +1 -1
- package/lib/issue/issue-webpack-error.js +5 -1
- package/lib/plugin-hooks.d.ts +1 -1
- package/lib/plugin-pools.js +5 -1
- package/lib/plugin.js +6 -2
- package/lib/rpc/rpc-worker.d.ts +1 -1
- package/lib/rpc/rpc-worker.js +5 -1
- package/lib/rpc/types.d.ts +3 -3
- package/lib/typescript/type-script-support.js +5 -1
- package/lib/typescript/type-script-worker-config.d.ts +0 -1
- package/lib/typescript/type-script-worker-config.js +2 -2
- package/lib/typescript/type-script-worker-options.d.ts +1 -1
- package/lib/typescript/worker/get-dependencies-worker.d.ts +1 -1
- package/lib/typescript/worker/get-issues-worker.d.ts +1 -1
- package/lib/typescript/worker/lib/artifacts.js +5 -1
- package/lib/typescript/worker/lib/config.js +5 -1
- package/lib/typescript/worker/lib/dependencies.js +5 -1
- package/lib/typescript/worker/lib/diagnostics.js +5 -1
- package/lib/typescript/worker/lib/file-system/real-file-system.js +5 -1
- package/lib/typescript/worker/lib/tsbuildinfo.js +5 -1
- package/lib/utils/async/pool.d.ts +1 -1
- package/lib/watch/inclusive-node-watch-file-system.js +4 -4
- package/lib/watch/watch-file-system.d.ts +1 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -36,6 +36,9 @@ npm install --save-dev fork-ts-checker-webpack-plugin
|
|
|
36
36
|
|
|
37
37
|
# with yarn
|
|
38
38
|
yarn add --dev fork-ts-checker-webpack-plugin
|
|
39
|
+
|
|
40
|
+
# with pnpm
|
|
41
|
+
pnpm add -D fork-ts-checker-webpack-plugin
|
|
39
42
|
```
|
|
40
43
|
|
|
41
44
|
The minimal webpack config (with [ts-loader](https://github.com/TypeStrong/ts-loader))
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { Formatter, FormatterPathType } from './formatter';
|
|
2
2
|
import type { BabelCodeFrameOptions } from './types/babel__code-frame';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
type FormatterType = 'basic' | 'codeframe';
|
|
4
|
+
type BasicFormatterOptions = {
|
|
5
5
|
type: 'basic';
|
|
6
6
|
pathType?: FormatterPathType;
|
|
7
7
|
};
|
|
8
|
-
|
|
8
|
+
type CodeframeFormatterOptions = {
|
|
9
9
|
type: 'codeframe';
|
|
10
10
|
pathType?: FormatterPathType;
|
|
11
11
|
options?: BabelCodeFrameOptions;
|
|
12
12
|
};
|
|
13
|
-
|
|
13
|
+
type FormatterOptions = undefined | FormatterType | BasicFormatterOptions | CodeframeFormatterOptions | Formatter;
|
|
14
14
|
export { FormatterOptions, FormatterType, BasicFormatterOptions, CodeframeFormatterOptions };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { Issue } from '../issue';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
type Formatter = (issue: Issue) => string;
|
|
3
|
+
type FormatterPathType = 'relative' | 'absolute';
|
|
4
4
|
export { Formatter, FormatterPathType };
|
package/lib/formatter/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -64,7 +64,7 @@ function tapDoneToAsyncGetIssues(compiler, config, state) {
|
|
|
64
64
|
config.logger.log((0, stats_formatter_1.statsFormatter)(issues, stats));
|
|
65
65
|
}
|
|
66
66
|
else {
|
|
67
|
-
config.logger.log(chalk_1.default.green('No errors found.'));
|
|
67
|
+
config.logger.log(chalk_1.default.green('No typescript errors found.'));
|
|
68
68
|
}
|
|
69
69
|
// report issues to webpack-dev-server, if it's listening
|
|
70
70
|
// skip reporting if there are no issues, to avoid an extra hot reload
|
package/lib/issue/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IssuePredicate } from './issue-predicate';
|
|
2
2
|
import type { Issue } from './index';
|
|
3
|
-
|
|
3
|
+
type IssueMatch = Partial<Pick<Issue, 'severity' | 'code' | 'file'>>;
|
|
4
4
|
declare function createIssuePredicateFromIssueMatch(context: string, match: IssueMatch): IssuePredicate;
|
|
5
5
|
export { IssueMatch, createIssuePredicateFromIssueMatch };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IssueMatch } from './issue-match';
|
|
2
2
|
import type { IssuePredicate } from './issue-predicate';
|
|
3
|
-
|
|
3
|
+
type IssuePredicateOption = IssuePredicate | IssueMatch | (IssuePredicate | IssueMatch)[];
|
|
4
4
|
interface IssueOptions {
|
|
5
5
|
include?: IssuePredicateOption;
|
|
6
6
|
exclude?: IssuePredicateOption;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Issue } from './index';
|
|
2
|
-
|
|
2
|
+
type IssuePredicate = (issue: Issue) => boolean;
|
|
3
3
|
declare function createTrivialIssuePredicate(result: boolean): IssuePredicate;
|
|
4
4
|
declare function composeIssuePredicates(predicates: IssuePredicate[]): IssuePredicate;
|
|
5
5
|
export { IssuePredicate, createTrivialIssuePredicate, composeIssuePredicates };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
type IssueSeverity = 'error' | 'warning';
|
|
2
2
|
declare function isIssueSeverity(value: unknown): value is IssueSeverity;
|
|
3
3
|
declare function compareIssueSeverities(severityA: IssueSeverity, severityB: IssueSeverity): number;
|
|
4
4
|
export { IssueSeverity, isIssueSeverity, compareIssueSeverities };
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/lib/plugin-hooks.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ declare function createPluginHooks(): {
|
|
|
9
9
|
error: SyncHook<[unknown, webpack.Compilation], void, import("tapable").UnsetAdditionalOptions>;
|
|
10
10
|
issues: SyncWaterfallHook<[Issue[], webpack.Compilation | undefined], void>;
|
|
11
11
|
};
|
|
12
|
-
|
|
12
|
+
type ForkTsCheckerWebpackPluginHooks = ReturnType<typeof createPluginHooks>;
|
|
13
13
|
declare function getPluginHooks(compiler: webpack.Compiler | webpack.MultiCompiler): {
|
|
14
14
|
start: AsyncSeriesWaterfallHook<[FilesChange, webpack.Compilation], import("tapable").UnsetAdditionalOptions>;
|
|
15
15
|
waiting: SyncHook<[webpack.Compilation], void, import("tapable").UnsetAdditionalOptions>;
|
package/lib/plugin-pools.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/lib/plugin.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -70,7 +74,7 @@ exports.ForkTsCheckerWebpackPlugin = ForkTsCheckerWebpackPlugin;
|
|
|
70
74
|
/**
|
|
71
75
|
* Current version of the plugin
|
|
72
76
|
*/
|
|
73
|
-
ForkTsCheckerWebpackPlugin.version = '9.0
|
|
77
|
+
ForkTsCheckerWebpackPlugin.version = '9.1.0'; // will be replaced by the @semantic-release/exec
|
|
74
78
|
/**
|
|
75
79
|
* Default pools for the plugin concurrency limit
|
|
76
80
|
*/
|
package/lib/rpc/rpc-worker.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ interface RpcWorkerBase {
|
|
|
7
7
|
readonly connected: boolean;
|
|
8
8
|
readonly process: ChildProcess | undefined;
|
|
9
9
|
}
|
|
10
|
-
|
|
10
|
+
type RpcWorker<T extends RpcMethod = RpcMethod> = RpcWorkerBase & RpcRemoteMethod<T>;
|
|
11
11
|
declare function createRpcWorker<T extends RpcMethod>(modulePath: string, data: unknown, memoryLimit?: number): RpcWorker<T>;
|
|
12
12
|
declare function getRpcWorkerData(): unknown;
|
|
13
13
|
export { createRpcWorker, getRpcWorkerData, RpcWorker };
|
package/lib/rpc/rpc-worker.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/lib/rpc/types.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ interface RpcRejectMessage {
|
|
|
13
13
|
id: string;
|
|
14
14
|
error: unknown;
|
|
15
15
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
type RpcMessage = RpcCallMessage | RpcResolveMessage | RpcRejectMessage;
|
|
17
|
+
type RpcMethod = (...args: any[]) => any;
|
|
18
|
+
type RpcRemoteMethod<T extends RpcMethod> = T extends (...args: infer A) => infer R ? R extends Promise<any> ? (...args: A) => R : (...args: A) => Promise<R> : (...args: unknown[]) => Promise<unknown>;
|
|
19
19
|
export { RpcCallMessage, RpcResolveMessage, RpcRejectMessage, RpcMessage, RpcMethod, RpcRemoteMethod, };
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -3,7 +3,6 @@ import type { TypeScriptConfigOverwrite } from './type-script-config-overwrite';
|
|
|
3
3
|
import type { TypeScriptDiagnosticsOptions } from './type-script-diagnostics-options';
|
|
4
4
|
import type { TypeScriptWorkerOptions } from './type-script-worker-options';
|
|
5
5
|
interface TypeScriptWorkerConfig {
|
|
6
|
-
enabled: boolean;
|
|
7
6
|
memoryLimit: number;
|
|
8
7
|
configFile: string;
|
|
9
8
|
configOverwrite: TypeScriptConfigOverwrite;
|
|
@@ -6,13 +6,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.createTypeScriptWorkerConfig = void 0;
|
|
7
7
|
const path_1 = __importDefault(require("path"));
|
|
8
8
|
function createTypeScriptWorkerConfig(compiler, options) {
|
|
9
|
-
let configFile =
|
|
9
|
+
let configFile = (options === null || options === void 0 ? void 0 : options.configFile) || 'tsconfig.json';
|
|
10
10
|
// ensure that `configFile` is an absolute normalized path
|
|
11
11
|
configFile = path_1.default.normalize(path_1.default.isAbsolute(configFile)
|
|
12
12
|
? configFile
|
|
13
13
|
: path_1.default.resolve(compiler.options.context || process.cwd(), configFile));
|
|
14
14
|
const optionsAsObject = typeof options === 'object' ? options : {};
|
|
15
15
|
const typescriptPath = optionsAsObject.typescriptPath || require.resolve('typescript');
|
|
16
|
-
return Object.assign(Object.assign({
|
|
16
|
+
return Object.assign(Object.assign({ memoryLimit: 2048, build: false, mode: optionsAsObject.build ? 'write-tsbuildinfo' : 'readonly', profile: false }, optionsAsObject), { configFile: configFile, configOverwrite: optionsAsObject.configOverwrite || {}, context: optionsAsObject.context || path_1.default.dirname(configFile), diagnosticOptions: Object.assign({ syntactic: false, semantic: true, declaration: false, global: false }, (optionsAsObject.diagnosticOptions || {})), typescriptPath: typescriptPath });
|
|
17
17
|
}
|
|
18
18
|
exports.createTypeScriptWorkerConfig = createTypeScriptWorkerConfig;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TypeScriptConfigOverwrite } from './type-script-config-overwrite';
|
|
2
2
|
import type { TypeScriptDiagnosticsOptions } from './type-script-diagnostics-options';
|
|
3
|
-
|
|
3
|
+
type TypeScriptWorkerOptions = {
|
|
4
4
|
memoryLimit?: number;
|
|
5
5
|
configFile?: string;
|
|
6
6
|
configOverwrite?: TypeScriptConfigOverwrite;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { FilesChange } from '../../files-change';
|
|
2
2
|
import type { FilesMatch } from '../../files-match';
|
|
3
3
|
declare const getDependenciesWorker: (change: FilesChange) => FilesMatch;
|
|
4
|
-
export
|
|
4
|
+
export type GetDependenciesWorker = typeof getDependenciesWorker;
|
|
5
5
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { FilesChange } from '../../files-change';
|
|
2
2
|
import type { Issue } from '../../issue';
|
|
3
3
|
declare const getIssuesWorker: (change: FilesChange, watching: boolean) => Promise<Issue[]>;
|
|
4
|
-
export
|
|
4
|
+
export type GetIssuesWorker = typeof getIssuesWorker;
|
|
5
5
|
export {};
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AbortSignal } from 'node-abort-controller';
|
|
2
|
-
|
|
2
|
+
type Task<T> = (signal?: AbortSignal) => Promise<T>;
|
|
3
3
|
interface Pool {
|
|
4
4
|
submit<T>(task: Task<T>, signal?: AbortSignal): Promise<T>;
|
|
5
5
|
size: number;
|
|
@@ -33,6 +33,10 @@ function createIsIgnored(ignored, excluded) {
|
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
35
|
class InclusiveNodeWatchFileSystem {
|
|
36
|
+
get watcher() {
|
|
37
|
+
var _a;
|
|
38
|
+
return this.watchFileSystem.watcher || ((_a = this.watchFileSystem.wfs) === null || _a === void 0 ? void 0 : _a.watcher);
|
|
39
|
+
}
|
|
36
40
|
constructor(watchFileSystem, compiler, pluginState) {
|
|
37
41
|
this.watchFileSystem = watchFileSystem;
|
|
38
42
|
this.compiler = compiler;
|
|
@@ -158,9 +162,5 @@ class InclusiveNodeWatchFileSystem {
|
|
|
158
162
|
this.dirsWatchers = new Map();
|
|
159
163
|
this.deletedFiles = new Set();
|
|
160
164
|
}
|
|
161
|
-
get watcher() {
|
|
162
|
-
var _a;
|
|
163
|
-
return this.watchFileSystem.watcher || ((_a = this.watchFileSystem.wfs) === null || _a === void 0 ? void 0 : _a.watcher);
|
|
164
|
-
}
|
|
165
165
|
}
|
|
166
166
|
exports.InclusiveNodeWatchFileSystem = InclusiveNodeWatchFileSystem;
|
|
@@ -5,7 +5,7 @@ interface Watchpack extends EventEmitter {
|
|
|
5
5
|
_onChange(item: string, mtime: number, file: string, type?: string): void;
|
|
6
6
|
_onRemove(item: string, file: string, type?: string): void;
|
|
7
7
|
}
|
|
8
|
-
|
|
8
|
+
type Watch = NonNullable<webpack.Compiler['watchFileSystem']>['watch'];
|
|
9
9
|
interface WatchFileSystem {
|
|
10
10
|
watcher?: Watchpack;
|
|
11
11
|
wfs?: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fork-ts-checker-webpack-plugin",
|
|
3
|
-
"version": "9.0
|
|
3
|
+
"version": "9.1.0",
|
|
4
4
|
"description": "Runs typescript type checker and linter on separate process.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"lint": "cross-env eslint ./src ./test --ext .ts",
|
|
36
36
|
"test": "yarn build && yarn test:unit && yarn test:e2e",
|
|
37
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",
|
|
38
|
+
"test:e2e": "npm pack && cross-env YARN_ENABLE_IMMUTABLE_INSTALLS=false 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",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@babel/code-frame": "^7.16.7",
|
|
59
59
|
"chalk": "^4.1.2",
|
|
60
|
-
"chokidar": "^
|
|
60
|
+
"chokidar": "^4.0.1",
|
|
61
61
|
"cosmiconfig": "^8.2.0",
|
|
62
62
|
"deepmerge": "^4.2.2",
|
|
63
63
|
"fs-extra": "^10.0.0",
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"webpack": "^5.67.0"
|
|
116
116
|
},
|
|
117
117
|
"engines": {
|
|
118
|
-
"node": ">=
|
|
119
|
-
|
|
120
|
-
|
|
118
|
+
"node": ">=14.21.3"
|
|
119
|
+
},
|
|
120
|
+
"packageManager": "yarn@4.7.0"
|
|
121
121
|
}
|