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.
Files changed (64) hide show
  1. package/lib/files-change.js +5 -6
  2. package/lib/formatter/basic-formatter.js +1 -2
  3. package/lib/formatter/code-frame-formatter.js +1 -2
  4. package/lib/formatter/formatter-config.js +1 -2
  5. package/lib/formatter/stats-formatter.js +1 -2
  6. package/lib/formatter/webpack-formatter.js +1 -2
  7. package/lib/hooks/intercept-done-to-get-dev-server-tap.js +1 -2
  8. package/lib/hooks/tap-after-compile-to-add-dependencies.js +1 -2
  9. package/lib/hooks/tap-after-compile-to-get-issues.js +1 -2
  10. package/lib/hooks/tap-after-environment-to-patch-watching.js +1 -2
  11. package/lib/hooks/tap-done-to-async-get-issues.js +1 -2
  12. package/lib/hooks/tap-error-to-log-message.js +1 -2
  13. package/lib/hooks/tap-start-to-run-workers.js +1 -2
  14. package/lib/hooks/tap-stop-to-terminate-workers.js +1 -2
  15. package/lib/infrastructure-logger.js +1 -2
  16. package/lib/issue/issue-config.js +1 -2
  17. package/lib/issue/issue-location.js +2 -3
  18. package/lib/issue/issue-match.js +3 -4
  19. package/lib/issue/issue-position.js +1 -2
  20. package/lib/issue/issue-predicate.js +2 -3
  21. package/lib/issue/issue-severity.js +2 -3
  22. package/lib/issue/issue-webpack-error.js +17 -7
  23. package/lib/issue/issue.js +2 -3
  24. package/lib/plugin-config.js +1 -2
  25. package/lib/plugin-hooks.d.ts +4 -4
  26. package/lib/plugin-hooks.js +1 -2
  27. package/lib/plugin-pools.js +17 -7
  28. package/lib/plugin-state.js +1 -2
  29. package/lib/plugin.d.ts +2 -2
  30. package/lib/plugin.js +24 -9
  31. package/lib/rpc/expose-rpc.js +1 -2
  32. package/lib/rpc/rpc-worker.d.ts +0 -1
  33. package/lib/rpc/rpc-worker.js +19 -10
  34. package/lib/rpc/wrap-rpc.d.ts +0 -1
  35. package/lib/rpc/wrap-rpc.js +1 -2
  36. package/lib/typescript/type-script-support.js +19 -10
  37. package/lib/typescript/type-script-worker-config.js +1 -2
  38. package/lib/typescript/worker/lib/artifacts.js +20 -11
  39. package/lib/typescript/worker/lib/config.js +47 -19
  40. package/lib/typescript/worker/lib/dependencies.js +19 -10
  41. package/lib/typescript/worker/lib/diagnostics.js +35 -13
  42. package/lib/typescript/worker/lib/emit.js +1 -2
  43. package/lib/typescript/worker/lib/file-system/file-system.d.ts +0 -1
  44. package/lib/typescript/worker/lib/file-system/mem-file-system.js +1 -0
  45. package/lib/typescript/worker/lib/file-system/real-file-system.js +17 -7
  46. package/lib/typescript/worker/lib/host/compiler-host.js +1 -2
  47. package/lib/typescript/worker/lib/host/watch-compiler-host.js +1 -2
  48. package/lib/typescript/worker/lib/host/watch-solution-builder-host.js +1 -2
  49. package/lib/typescript/worker/lib/performance.js +3 -4
  50. package/lib/typescript/worker/lib/program/program.js +2 -3
  51. package/lib/typescript/worker/lib/program/solution-builder.js +2 -3
  52. package/lib/typescript/worker/lib/program/watch-program.js +3 -4
  53. package/lib/typescript/worker/lib/tracing.js +3 -4
  54. package/lib/typescript/worker/lib/tsbuildinfo.js +20 -11
  55. package/lib/utils/async/controlled-promise.js +1 -2
  56. package/lib/utils/async/is-pending.js +1 -2
  57. package/lib/utils/async/pool.js +1 -2
  58. package/lib/utils/async/wait.js +1 -2
  59. package/lib/utils/path/forward-slash.js +1 -2
  60. package/lib/utils/path/is-inside-another-path.js +1 -2
  61. package/lib/utils/path/relative-to-context.js +1 -2
  62. package/lib/watch/inclusive-node-watch-file-system.js +2 -2
  63. package/lib/watch/watch-file-system.d.ts +0 -1
  64. 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 (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
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.getTsBuildInfoEmitPath = exports.emitTsBuildInfoIfNeeded = exports.invalidateTsBuildInfo = void 0;
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 = void 0;
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 = void 0;
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;
@@ -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 = void 0;
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;
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.wait = void 0;
3
+ exports.wait = wait;
4
4
  function wait(timeout) {
5
5
  return new Promise((resolve) => setTimeout(resolve, timeout));
6
6
  }
7
- exports.wait = wait;
@@ -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 = void 0;
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 = void 0;
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 = void 0;
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 = __importDefault(require("minimatch"));
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.default)(path, pattern);
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);
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import type { EventEmitter } from 'events';
3
2
  import type * as webpack from 'webpack';
4
3
  interface Watchpack extends EventEmitter {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fork-ts-checker-webpack-plugin",
3
- "version": "9.1.0",
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 --ext .ts",
36
- "test": "yarn build && yarn test:unit && yarn test:e2e",
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 YARN_ENABLE_IMMUTABLE_INSTALLS=false jest --config=test/e2e/jest.config.js --ci -i -b",
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 install"
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.16.7",
57
+ "@babel/code-frame": "^7.29.7",
59
58
  "chalk": "^4.1.2",
60
- "chokidar": "^4.0.1",
61
- "cosmiconfig": "^8.2.0",
62
- "deepmerge": "^4.2.2",
63
- "fs-extra": "^10.0.0",
64
- "memfs": "^3.4.1",
65
- "minimatch": "^3.0.4",
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": "^3.1.1",
68
- "semver": "^7.3.5",
69
- "tapable": "^2.2.1"
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": "^16.0.0",
77
- "@semantic-release/commit-analyzer": "^8.0.1",
78
- "@semantic-release/exec": "^5.0.0",
79
- "@semantic-release/github": "^7.2.3",
80
- "@semantic-release/npm": "^7.1.3",
81
- "@semantic-release/release-notes-generator": "^9.0.3",
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/cross-spawn": "^6.0.2",
84
- "@types/fs-extra": "^9.0.13",
85
- "@types/jest": "^27.4.0",
86
- "@types/json-schema": "^7.0.9",
87
- "@types/minimatch": "^3.0.5",
88
- "@types/mock-fs": "^4.13.1",
89
- "@types/node": "^16.4.13",
90
- "@types/rimraf": "^3.0.2",
91
- "@types/semver": "^7.3.9",
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": "^8.8.0",
97
- "eslint-plugin-import": "^2.25.4",
98
- "eslint-plugin-node": "^11.1.0",
99
- "eslint-plugin-prettier": "^4.0.0",
100
- "git-cz": "^4.8.0",
101
- "husky": "^7.0.4",
102
- "jest": "^27.4.7",
103
- "jest-circus": "^27.4.6",
104
- "jest-environment-node": "^27.4.6",
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": "^11.1.2",
108
- "mock-fs": "^5.1.2",
109
- "prettier": "^2.5.1",
110
- "rimraf": "^3.0.2",
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": "^27.1.3",
114
- "typescript": "^4.5.5",
115
- "webpack": "^5.67.0"
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": "yarn@4.7.0"
116
+ "packageManager": "npm@11.21.2"
121
117
  }