fork-ts-checker-webpack-plugin 9.0.2 → 9.0.3

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.
Files changed (33) hide show
  1. package/README.md +3 -0
  2. package/lib/formatter/formatter-config.d.ts +1 -1
  3. package/lib/formatter/formatter-options.d.ts +4 -4
  4. package/lib/formatter/formatter.d.ts +2 -2
  5. package/lib/formatter/index.js +5 -1
  6. package/lib/issue/index.js +5 -1
  7. package/lib/issue/issue-match.d.ts +1 -1
  8. package/lib/issue/issue-options.d.ts +1 -1
  9. package/lib/issue/issue-predicate.d.ts +1 -1
  10. package/lib/issue/issue-severity.d.ts +1 -1
  11. package/lib/issue/issue-webpack-error.js +5 -1
  12. package/lib/plugin-hooks.d.ts +1 -1
  13. package/lib/plugin-pools.js +5 -1
  14. package/lib/plugin.js +6 -2
  15. package/lib/rpc/rpc-worker.d.ts +1 -1
  16. package/lib/rpc/rpc-worker.js +5 -1
  17. package/lib/rpc/types.d.ts +3 -3
  18. package/lib/typescript/type-script-support.js +5 -1
  19. package/lib/typescript/type-script-worker-config.d.ts +0 -1
  20. package/lib/typescript/type-script-worker-config.js +2 -2
  21. package/lib/typescript/type-script-worker-options.d.ts +1 -1
  22. package/lib/typescript/worker/get-dependencies-worker.d.ts +1 -1
  23. package/lib/typescript/worker/get-issues-worker.d.ts +1 -1
  24. package/lib/typescript/worker/lib/artifacts.js +5 -1
  25. package/lib/typescript/worker/lib/config.js +5 -1
  26. package/lib/typescript/worker/lib/dependencies.js +5 -1
  27. package/lib/typescript/worker/lib/diagnostics.js +5 -1
  28. package/lib/typescript/worker/lib/file-system/real-file-system.js +5 -1
  29. package/lib/typescript/worker/lib/tsbuildinfo.js +5 -1
  30. package/lib/utils/async/pool.d.ts +1 -1
  31. package/lib/watch/inclusive-node-watch-file-system.js +4 -4
  32. package/lib/watch/watch-file-system.d.ts +1 -1
  33. package/package.json +5 -5
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,6 +1,6 @@
1
1
  import type { Formatter, FormatterPathType } from './formatter';
2
2
  import type { FormatterOptions } from './formatter-options';
3
- declare type FormatterConfig = {
3
+ type FormatterConfig = {
4
4
  format: Formatter;
5
5
  pathType: FormatterPathType;
6
6
  };
@@ -1,14 +1,14 @@
1
1
  import type { Formatter, FormatterPathType } from './formatter';
2
2
  import type { BabelCodeFrameOptions } from './types/babel__code-frame';
3
- declare type FormatterType = 'basic' | 'codeframe';
4
- declare type BasicFormatterOptions = {
3
+ type FormatterType = 'basic' | 'codeframe';
4
+ type BasicFormatterOptions = {
5
5
  type: 'basic';
6
6
  pathType?: FormatterPathType;
7
7
  };
8
- declare type CodeframeFormatterOptions = {
8
+ type CodeframeFormatterOptions = {
9
9
  type: 'codeframe';
10
10
  pathType?: FormatterPathType;
11
11
  options?: BabelCodeFrameOptions;
12
12
  };
13
- declare type FormatterOptions = undefined | FormatterType | BasicFormatterOptions | CodeframeFormatterOptions | Formatter;
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
- declare type Formatter = (issue: Issue) => string;
3
- declare type FormatterPathType = 'relative' | 'absolute';
2
+ type Formatter = (issue: Issue) => string;
3
+ type FormatterPathType = 'relative' | 'absolute';
4
4
  export { Formatter, FormatterPathType };
@@ -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.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
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.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
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
- declare type IssueMatch = Partial<Pick<Issue, 'severity' | 'code' | 'file'>>;
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
- declare type IssuePredicateOption = IssuePredicate | IssueMatch | (IssuePredicate | IssueMatch)[];
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
- declare type IssuePredicate = (issue: Issue) => boolean;
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
- declare type IssueSeverity = 'error' | 'warning';
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.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
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];
@@ -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
- declare type ForkTsCheckerWebpackPluginHooks = ReturnType<typeof createPluginHooks>;
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>;
@@ -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.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
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.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
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.2'; // will be replaced by the @semantic-release/exec
77
+ ForkTsCheckerWebpackPlugin.version = '9.0.3'; // will be replaced by the @semantic-release/exec
74
78
  /**
75
79
  * Default pools for the plugin concurrency limit
76
80
  */
@@ -7,7 +7,7 @@ interface RpcWorkerBase {
7
7
  readonly connected: boolean;
8
8
  readonly process: ChildProcess | undefined;
9
9
  }
10
- declare type RpcWorker<T extends RpcMethod = RpcMethod> = RpcWorkerBase & RpcRemoteMethod<T>;
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 };
@@ -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.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
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];
@@ -13,7 +13,7 @@ interface RpcRejectMessage {
13
13
  id: string;
14
14
  error: unknown;
15
15
  }
16
- declare type RpcMessage = RpcCallMessage | RpcResolveMessage | RpcRejectMessage;
17
- declare type RpcMethod = (...args: any[]) => any;
18
- declare 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>;
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.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
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 = typeof options === 'object' ? options.configFile || 'tsconfig.json' : 'tsconfig.json';
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({ enabled: options !== false, 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 });
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
- declare type TypeScriptWorkerOptions = {
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 declare type GetDependenciesWorker = typeof getDependenciesWorker;
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 declare type GetIssuesWorker = typeof getIssuesWorker;
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.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
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.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
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.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
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.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
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.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
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.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
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
- declare type Task<T> = (signal?: AbortSignal) => Promise<T>;
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
- declare type Watch = webpack.Compiler['watchFileSystem']['watch'];
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.2",
3
+ "version": "9.0.3",
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",
@@ -115,7 +115,7 @@
115
115
  "webpack": "^5.67.0"
116
116
  },
117
117
  "engines": {
118
- "node": ">=12.13.0",
119
- "yarn": ">=1.0.0"
120
- }
118
+ "node": ">=12.13.0"
119
+ },
120
+ "packageManager": "yarn@4.7.0"
121
121
  }