fork-ts-checker-webpack-plugin 7.0.0-alpha.15 → 7.0.0-alpha.16

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 (47) hide show
  1. package/lib/formatter/code-frame-formatter.js +2 -2
  2. package/lib/formatter/formatter-config.js +2 -2
  3. package/lib/formatter/webpack-formatter.js +2 -2
  4. package/lib/hooks/intercept-done-to-get-dev-server-tap.js +1 -1
  5. package/lib/hooks/tap-after-compile-to-add-dependencies.js +1 -1
  6. package/lib/hooks/tap-after-compile-to-get-issues.js +2 -2
  7. package/lib/hooks/tap-after-environment-to-patch-watching.js +1 -1
  8. package/lib/hooks/tap-done-to-async-get-issues.js +5 -5
  9. package/lib/hooks/tap-error-to-log-message.js +1 -1
  10. package/lib/hooks/tap-start-to-run-workers.js +7 -7
  11. package/lib/hooks/tap-stop-to-terminate-workers.js +1 -1
  12. package/lib/issue/issue-config.js +4 -4
  13. package/lib/issue/issue-location.js +2 -2
  14. package/lib/issue/issue-match.js +1 -1
  15. package/lib/issue/issue-webpack-error.js +2 -2
  16. package/lib/issue/issue.js +3 -3
  17. package/lib/plugin-config.js +3 -3
  18. package/lib/plugin-hooks.d.ts +2 -2
  19. package/lib/plugin-pools.js +2 -2
  20. package/lib/plugin.d.ts +1 -1
  21. package/lib/plugin.js +16 -16
  22. package/lib/rpc/rpc-worker.js +1 -1
  23. package/lib/typescript/extension/type-script-embedded-extension.js +2 -2
  24. package/lib/typescript/extension/vue/type-script-vue-extension-support.js +1 -1
  25. package/lib/typescript/extension/vue/type-script-vue-extension.js +1 -1
  26. package/lib/typescript/type-script-support.js +1 -1
  27. package/lib/typescript/type-script-worker-config.js +1 -1
  28. package/lib/typescript/worker/get-dependencies-worker.js +7 -7
  29. package/lib/typescript/worker/get-issues-worker.js +24 -24
  30. package/lib/typescript/worker/lib/artifacts.js +3 -3
  31. package/lib/typescript/worker/lib/config.js +3 -3
  32. package/lib/typescript/worker/lib/dependencies.js +2 -2
  33. package/lib/typescript/worker/lib/diagnostics.js +1 -1
  34. package/lib/typescript/worker/lib/extensions.js +1 -1
  35. package/lib/typescript/worker/lib/file-system/mem-file-system.js +2 -2
  36. package/lib/typescript/worker/lib/file-system/real-file-system.js +23 -23
  37. package/lib/typescript/worker/lib/host/watch-solution-builder-host.js +1 -1
  38. package/lib/typescript/worker/lib/program/program.js +3 -3
  39. package/lib/typescript/worker/lib/program/solution-builder.js +6 -6
  40. package/lib/typescript/worker/lib/program/watch-program.js +7 -7
  41. package/lib/typescript/worker/lib/system.js +7 -7
  42. package/lib/typescript/worker/lib/tracing.js +1 -1
  43. package/lib/typescript/worker/lib/tsbuildinfo.js +2 -2
  44. package/lib/typescript/worker/lib/worker-config.js +1 -1
  45. package/lib/utils/path/relative-to-context.js +1 -1
  46. package/lib/watch/inclusive-node-watch-file-system.js +10 -10
  47. package/package.json +32 -33
@@ -9,12 +9,12 @@ const code_frame_1 = require("@babel/code-frame");
9
9
  const fs_extra_1 = __importDefault(require("fs-extra"));
10
10
  const basic_formatter_1 = require("./basic-formatter");
11
11
  function createCodeFrameFormatter(options) {
12
- const basicFormatter = basic_formatter_1.createBasicFormatter();
12
+ const basicFormatter = (0, basic_formatter_1.createBasicFormatter)();
13
13
  return function codeFrameFormatter(issue) {
14
14
  const source = issue.file && fs_extra_1.default.existsSync(issue.file) && fs_extra_1.default.readFileSync(issue.file, 'utf-8');
15
15
  let frame = '';
16
16
  if (source && issue.location) {
17
- frame = code_frame_1.codeFrameColumns(source, issue.location, Object.assign({ highlightCode: true }, (options || {})))
17
+ frame = (0, code_frame_1.codeFrameColumns)(source, issue.location, Object.assign({ highlightCode: true }, (options || {})))
18
18
  .split('\n')
19
19
  .map((line) => ' ' + line)
20
20
  .join(os_1.default.EOL);
@@ -13,13 +13,13 @@ function createFormatterConfig(options) {
13
13
  : options
14
14
  : 'codeframe';
15
15
  if (!type || type === 'basic') {
16
- return basic_formatter_1.createBasicFormatter();
16
+ return (0, basic_formatter_1.createBasicFormatter)();
17
17
  }
18
18
  if (type === 'codeframe') {
19
19
  const config = options && typeof options === 'object'
20
20
  ? options.options || {}
21
21
  : {};
22
- return code_frame_formatter_1.createCodeFrameFormatter(config);
22
+ return (0, code_frame_formatter_1.createCodeFrameFormatter)(config);
23
23
  }
24
24
  throw new Error(`Unknown "${type}" formatter. Available types are: "basic", "codeframe" or a custom function.`);
25
25
  }
@@ -14,9 +14,9 @@ function createWebpackFormatter(formatter) {
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 = chalk_1.default.whiteBright.bold(relative_to_context_1.relativeToContext(issue.file, process.cwd()));
17
+ let location = chalk_1.default.whiteBright.bold((0, relative_to_context_1.relativeToContext)(issue.file, process.cwd()));
18
18
  if (issue.location) {
19
- location += ` ${chalk_1.default.green.bold(issue_1.formatIssueLocation(issue.location))}`;
19
+ location += ` ${chalk_1.default.green.bold((0, issue_1.formatIssueLocation)(issue.location))}`;
20
20
  }
21
21
  return [`${color(severity)} in ${location}`, formatter(issue), ''].join(os_1.default.EOL);
22
22
  }
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.interceptDoneToGetDevServerTap = void 0;
4
4
  const infrastructure_logger_1 = require("../infrastructure-logger");
5
5
  function interceptDoneToGetDevServerTap(compiler, config, state) {
6
- const { debug } = infrastructure_logger_1.getInfrastructureLogger(compiler);
6
+ const { debug } = (0, infrastructure_logger_1.getInfrastructureLogger)(compiler);
7
7
  // inspired by https://github.com/ypresto/fork-ts-checker-async-overlay-webpack-plugin
8
8
  compiler.hooks.done.intercept({
9
9
  register: (tap) => {
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.tapAfterCompileToAddDependencies = void 0;
13
13
  const infrastructure_logger_1 = require("../infrastructure-logger");
14
14
  function tapAfterCompileToAddDependencies(compiler, config, state) {
15
- const { debug } = infrastructure_logger_1.getInfrastructureLogger(compiler);
15
+ const { debug } = (0, infrastructure_logger_1.getInfrastructureLogger)(compiler);
16
16
  compiler.hooks.afterCompile.tapPromise('ForkTsCheckerWebpackPlugin', (compilation) => __awaiter(this, void 0, void 0, function* () {
17
17
  if (compilation.compiler !== compiler) {
18
18
  // run only for the compiler that the plugin was registered for
@@ -14,8 +14,8 @@ const infrastructure_logger_1 = require("../infrastructure-logger");
14
14
  const issue_webpack_error_1 = require("../issue/issue-webpack-error");
15
15
  const plugin_hooks_1 = require("../plugin-hooks");
16
16
  function tapAfterCompileToGetIssues(compiler, config, state) {
17
- const hooks = plugin_hooks_1.getPluginHooks(compiler);
18
- const { debug } = infrastructure_logger_1.getInfrastructureLogger(compiler);
17
+ const hooks = (0, plugin_hooks_1.getPluginHooks)(compiler);
18
+ const { debug } = (0, infrastructure_logger_1.getInfrastructureLogger)(compiler);
19
19
  compiler.hooks.afterCompile.tapPromise('ForkTsCheckerWebpackPlugin', (compilation) => __awaiter(this, void 0, void 0, function* () {
20
20
  if (compilation.compiler !== compiler) {
21
21
  // run only for the compiler that the plugin was registered for
@@ -4,7 +4,7 @@ exports.tapAfterEnvironmentToPatchWatching = void 0;
4
4
  const infrastructure_logger_1 = require("../infrastructure-logger");
5
5
  const inclusive_node_watch_file_system_1 = require("../watch/inclusive-node-watch-file-system");
6
6
  function tapAfterEnvironmentToPatchWatching(compiler, state) {
7
- const { debug } = infrastructure_logger_1.getInfrastructureLogger(compiler);
7
+ const { debug } = (0, infrastructure_logger_1.getInfrastructureLogger)(compiler);
8
8
  compiler.hooks.afterEnvironment.tap('ForkTsCheckerWebpackPlugin', () => {
9
9
  const watchFileSystem = compiler.watchFileSystem;
10
10
  if (watchFileSystem) {
@@ -21,8 +21,8 @@ const plugin_hooks_1 = require("../plugin-hooks");
21
21
  const is_pending_1 = require("../utils/async/is-pending");
22
22
  const wait_1 = require("../utils/async/wait");
23
23
  function tapDoneToAsyncGetIssues(compiler, config, state) {
24
- const hooks = plugin_hooks_1.getPluginHooks(compiler);
25
- const { log, debug } = infrastructure_logger_1.getInfrastructureLogger(compiler);
24
+ const hooks = (0, plugin_hooks_1.getPluginHooks)(compiler);
25
+ const { log, debug } = (0, infrastructure_logger_1.getInfrastructureLogger)(compiler);
26
26
  compiler.hooks.done.tap('ForkTsCheckerWebpackPlugin', (stats) => __awaiter(this, void 0, void 0, function* () {
27
27
  if (stats.compilation.compiler !== compiler) {
28
28
  // run only for the compiler that the plugin was registered for
@@ -31,13 +31,13 @@ function tapDoneToAsyncGetIssues(compiler, config, state) {
31
31
  const issuesPromise = state.issuesPromise;
32
32
  let issues;
33
33
  try {
34
- if (yield is_pending_1.isPending(issuesPromise)) {
34
+ if (yield (0, is_pending_1.isPending)(issuesPromise)) {
35
35
  hooks.waiting.call(stats.compilation);
36
36
  config.logger.log(chalk_1.default.cyan('Issues checking in progress...'));
37
37
  }
38
38
  else {
39
39
  // wait 10ms to log issues after webpack stats
40
- yield wait_1.wait(10);
40
+ yield (0, wait_1.wait)(10);
41
41
  }
42
42
  issues = yield issuesPromise;
43
43
  debug('Got issues from getIssuesWorker.', issues === null || issues === void 0 ? void 0 : issues.length);
@@ -54,7 +54,7 @@ function tapDoneToAsyncGetIssues(compiler, config, state) {
54
54
  issues = issues.filter(config.issue.predicate);
55
55
  // modify list of issues in the plugin hooks
56
56
  issues = hooks.issues.call(issues, stats.compilation);
57
- const formatter = webpack_formatter_1.createWebpackFormatter(config.formatter);
57
+ const formatter = (0, webpack_formatter_1.createWebpackFormatter)(config.formatter);
58
58
  if (issues.length) {
59
59
  // follow webpack's approach - one process.write to stderr with all errors and warnings
60
60
  config.logger.error(issues.map((issue) => formatter(issue)).join('\n'));
@@ -8,7 +8,7 @@ const chalk_1 = __importDefault(require("chalk"));
8
8
  const plugin_hooks_1 = require("../plugin-hooks");
9
9
  const rpc_1 = require("../rpc");
10
10
  function tapErrorToLogMessage(compiler, config) {
11
- const hooks = plugin_hooks_1.getPluginHooks(compiler);
11
+ const hooks = (0, plugin_hooks_1.getPluginHooks)(compiler);
12
12
  hooks.error.tap('ForkTsCheckerWebpackPlugin', (error) => {
13
13
  config.logger.error(String(error));
14
14
  if (error instanceof rpc_1.RpcExitError) {
@@ -18,14 +18,14 @@ const intercept_done_to_get_dev_server_tap_1 = require("./intercept-done-to-get-
18
18
  const tap_after_compile_to_get_issues_1 = require("./tap-after-compile-to-get-issues");
19
19
  const tap_done_to_async_get_issues_1 = require("./tap-done-to-async-get-issues");
20
20
  function tapStartToRunWorkers(compiler, getIssuesWorker, getDependenciesWorker, config, state) {
21
- const hooks = plugin_hooks_1.getPluginHooks(compiler);
22
- const { log, debug } = infrastructure_logger_1.getInfrastructureLogger(compiler);
21
+ const hooks = (0, plugin_hooks_1.getPluginHooks)(compiler);
22
+ const { log, debug } = (0, infrastructure_logger_1.getInfrastructureLogger)(compiler);
23
23
  compiler.hooks.run.tap('ForkTsCheckerWebpackPlugin', () => {
24
24
  if (!state.initialized) {
25
25
  debug('Initializing plugin for single run (not async).');
26
26
  state.initialized = true;
27
27
  state.watching = false;
28
- tap_after_compile_to_get_issues_1.tapAfterCompileToGetIssues(compiler, config, state);
28
+ (0, tap_after_compile_to_get_issues_1.tapAfterCompileToGetIssues)(compiler, config, state);
29
29
  }
30
30
  });
31
31
  compiler.hooks.watchRun.tap('ForkTsCheckerWebpackPlugin', () => __awaiter(this, void 0, void 0, function* () {
@@ -34,12 +34,12 @@ function tapStartToRunWorkers(compiler, getIssuesWorker, getDependenciesWorker,
34
34
  state.watching = true;
35
35
  if (config.async) {
36
36
  debug('Initializing plugin for watch run (async).');
37
- tap_done_to_async_get_issues_1.tapDoneToAsyncGetIssues(compiler, config, state);
38
- intercept_done_to_get_dev_server_tap_1.interceptDoneToGetDevServerTap(compiler, config, state);
37
+ (0, tap_done_to_async_get_issues_1.tapDoneToAsyncGetIssues)(compiler, config, state);
38
+ (0, intercept_done_to_get_dev_server_tap_1.interceptDoneToGetDevServerTap)(compiler, config, state);
39
39
  }
40
40
  else {
41
41
  debug('Initializing plugin for watch run (not async).');
42
- tap_after_compile_to_get_issues_1.tapAfterCompileToGetIssues(compiler, config, state);
42
+ (0, tap_after_compile_to_get_issues_1.tapAfterCompileToGetIssues)(compiler, config, state);
43
43
  }
44
44
  }
45
45
  }));
@@ -51,7 +51,7 @@ function tapStartToRunWorkers(compiler, getIssuesWorker, getDependenciesWorker,
51
51
  const iteration = ++state.iteration;
52
52
  let change = {};
53
53
  if (state.watching) {
54
- change = files_change_1.consumeFilesChange(compiler);
54
+ change = (0, files_change_1.consumeFilesChange)(compiler);
55
55
  log([
56
56
  'Calling reporter service for incremental check.',
57
57
  ` Changed files: ${JSON.stringify(change.changedFiles)}`,
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.tapStopToTerminateWorkers = void 0;
4
4
  const infrastructure_logger_1 = require("../infrastructure-logger");
5
5
  function tapStopToTerminateWorkers(compiler, getIssuesWorker, getDependenciesWorker, state) {
6
- const { debug } = infrastructure_logger_1.getInfrastructureLogger(compiler);
6
+ const { debug } = (0, infrastructure_logger_1.getInfrastructureLogger)(compiler);
7
7
  const terminateWorkers = () => {
8
8
  debug('Compiler is going to close - terminating workers...');
9
9
  getIssuesWorker.terminate();
@@ -5,11 +5,11 @@ const issue_match_1 = require("./issue-match");
5
5
  const issue_predicate_1 = require("./issue-predicate");
6
6
  function createIssuePredicateFromOption(context, option) {
7
7
  if (Array.isArray(option)) {
8
- return issue_predicate_1.composeIssuePredicates(option.map((option) => typeof option === 'function' ? option : issue_match_1.createIssuePredicateFromIssueMatch(context, option)));
8
+ return (0, issue_predicate_1.composeIssuePredicates)(option.map((option) => typeof option === 'function' ? option : (0, issue_match_1.createIssuePredicateFromIssueMatch)(context, option)));
9
9
  }
10
10
  return typeof option === 'function'
11
11
  ? option
12
- : issue_match_1.createIssuePredicateFromIssueMatch(context, option);
12
+ : (0, issue_match_1.createIssuePredicateFromIssueMatch)(context, option);
13
13
  }
14
14
  function createIssueConfig(compiler, options) {
15
15
  const context = compiler.options.context || process.cwd();
@@ -18,10 +18,10 @@ function createIssueConfig(compiler, options) {
18
18
  }
19
19
  const include = options.include
20
20
  ? createIssuePredicateFromOption(context, options.include)
21
- : issue_predicate_1.createTrivialIssuePredicate(true);
21
+ : (0, issue_predicate_1.createTrivialIssuePredicate)(true);
22
22
  const exclude = options.exclude
23
23
  ? createIssuePredicateFromOption(context, options.exclude)
24
- : issue_predicate_1.createTrivialIssuePredicate(false);
24
+ : (0, issue_predicate_1.createTrivialIssuePredicate)(false);
25
25
  return {
26
26
  predicate: (issue) => include(issue) && !exclude(issue),
27
27
  };
@@ -12,8 +12,8 @@ function compareIssueLocations(locationA, locationB) {
12
12
  if (!locationB) {
13
13
  return 1;
14
14
  }
15
- return (issue_position_1.compareIssuePositions(locationA.start, locationB.start) ||
16
- issue_position_1.compareIssuePositions(locationA.end, locationB.end));
15
+ return ((0, issue_position_1.compareIssuePositions)(locationA.start, locationB.start) ||
16
+ (0, issue_position_1.compareIssuePositions)(locationA.end, locationB.end));
17
17
  }
18
18
  exports.compareIssueLocations = compareIssueLocations;
19
19
  function formatIssueLocation({ start, end }) {
@@ -13,7 +13,7 @@ function createIssuePredicateFromIssueMatch(context, match) {
13
13
  const matchesCode = !match.code || match.code === issue.code;
14
14
  const matchesFile = !issue.file ||
15
15
  (!!issue.file &&
16
- (!match.file || minimatch_1.default(forward_slash_1.forwardSlash(path_1.default.relative(context, issue.file)), match.file)));
16
+ (!match.file || (0, minimatch_1.default)((0, forward_slash_1.forwardSlash)(path_1.default.relative(context, issue.file)), match.file)));
17
17
  return matchesSeverity && matchesCode && matchesFile;
18
18
  };
19
19
  }
@@ -17,9 +17,9 @@ class IssueWebpackError extends webpack_1.default.WebpackError {
17
17
  // should be a NormalModule instance.
18
18
  // to avoid such a dependency, we do a workaround - error.file will contain formatted location instead
19
19
  if (issue.file) {
20
- this.file = relative_to_context_1.relativeToContext(issue.file, process.cwd());
20
+ this.file = (0, relative_to_context_1.relativeToContext)(issue.file, process.cwd());
21
21
  if (issue.location) {
22
- this.file += ` ${chalk_1.default.green.bold(issue_location_1.formatIssueLocation(issue.location))}`;
22
+ this.file += ` ${chalk_1.default.green.bold((0, issue_location_1.formatIssueLocation)(issue.location))}`;
23
23
  }
24
24
  }
25
25
  Error.captureStackTrace(this, this.constructor);
@@ -6,7 +6,7 @@ const issue_severity_1 = require("./issue-severity");
6
6
  function isIssue(value) {
7
7
  return (!!value &&
8
8
  typeof value === 'object' &&
9
- issue_severity_1.isIssueSeverity(value.severity) &&
9
+ (0, issue_severity_1.isIssueSeverity)(value.severity) &&
10
10
  !!value.code &&
11
11
  !!value.message);
12
12
  }
@@ -24,9 +24,9 @@ function compareStrings(stringA, stringB) {
24
24
  return stringA.toString().localeCompare(stringB.toString());
25
25
  }
26
26
  function compareIssues(issueA, issueB) {
27
- return (issue_severity_1.compareIssueSeverities(issueA.severity, issueB.severity) ||
27
+ return ((0, issue_severity_1.compareIssueSeverities)(issueA.severity, issueB.severity) ||
28
28
  compareStrings(issueA.file, issueB.file) ||
29
- issue_location_1.compareIssueLocations(issueA.location, issueB.location) ||
29
+ (0, issue_location_1.compareIssueLocations)(issueA.location, issueB.location) ||
30
30
  compareStrings(issueA.code, issueB.code) ||
31
31
  compareStrings(issueA.message, issueB.message) ||
32
32
  0 /* EqualTo */);
@@ -7,9 +7,9 @@ const type_script_worker_config_1 = require("./typescript/type-script-worker-con
7
7
  function createPluginConfig(compiler, options = {}) {
8
8
  return {
9
9
  async: options.async === undefined ? compiler.options.mode === 'development' : options.async,
10
- typescript: type_script_worker_config_1.createTypeScriptWorkerConfig(compiler, options.typescript),
11
- issue: issue_config_1.createIssueConfig(compiler, options.issue),
12
- formatter: formatter_1.createFormatterConfig(options.formatter),
10
+ typescript: (0, type_script_worker_config_1.createTypeScriptWorkerConfig)(compiler, options.typescript),
11
+ issue: (0, issue_config_1.createIssueConfig)(compiler, options.issue),
12
+ formatter: (0, formatter_1.createFormatterConfig)(options.formatter),
13
13
  logger: options.logger || console,
14
14
  devServer: options.devServer !== false,
15
15
  };
@@ -6,7 +6,7 @@ declare function createPluginHooks(): {
6
6
  start: AsyncSeriesWaterfallHook<[FilesChange, webpack.Compilation], import("tapable").UnsetAdditionalOptions>;
7
7
  waiting: SyncHook<[webpack.Compilation], void, import("tapable").UnsetAdditionalOptions>;
8
8
  canceled: SyncHook<[webpack.Compilation], void, import("tapable").UnsetAdditionalOptions>;
9
- error: SyncHook<[Error, webpack.Compilation], void, import("tapable").UnsetAdditionalOptions>;
9
+ error: SyncHook<[unknown, webpack.Compilation], void, import("tapable").UnsetAdditionalOptions>;
10
10
  issues: SyncWaterfallHook<[Issue[], webpack.Compilation | undefined], void>;
11
11
  };
12
12
  declare type ForkTsCheckerWebpackPluginHooks = ReturnType<typeof createPluginHooks>;
@@ -14,7 +14,7 @@ declare function getPluginHooks(compiler: webpack.Compiler | webpack.MultiCompil
14
14
  start: AsyncSeriesWaterfallHook<[FilesChange, webpack.Compilation], import("tapable").UnsetAdditionalOptions>;
15
15
  waiting: SyncHook<[webpack.Compilation], void, import("tapable").UnsetAdditionalOptions>;
16
16
  canceled: SyncHook<[webpack.Compilation], void, import("tapable").UnsetAdditionalOptions>;
17
- error: SyncHook<[Error, webpack.Compilation], void, import("tapable").UnsetAdditionalOptions>;
17
+ error: SyncHook<[unknown, webpack.Compilation], void, import("tapable").UnsetAdditionalOptions>;
18
18
  issues: SyncWaterfallHook<[Issue[], webpack.Compilation | undefined], void>;
19
19
  };
20
20
  export { getPluginHooks, ForkTsCheckerWebpackPluginHooks };
@@ -22,7 +22,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
22
22
  exports.dependenciesPool = exports.issuesPool = void 0;
23
23
  const os = __importStar(require("os"));
24
24
  const pool_1 = require("./utils/async/pool");
25
- const issuesPool = pool_1.createPool(Math.max(1, os.cpus().length));
25
+ const issuesPool = (0, pool_1.createPool)(Math.max(1, os.cpus().length));
26
26
  exports.issuesPool = issuesPool;
27
- const dependenciesPool = pool_1.createPool(Math.max(1, os.cpus().length));
27
+ const dependenciesPool = (0, pool_1.createPool)(Math.max(1, os.cpus().length));
28
28
  exports.dependenciesPool = dependenciesPool;
package/lib/plugin.d.ts CHANGED
@@ -20,7 +20,7 @@ declare class ForkTsCheckerWebpackPlugin {
20
20
  start: import("tapable").AsyncSeriesWaterfallHook<[import("./files-change").FilesChange, webpack.Compilation], import("tapable").UnsetAdditionalOptions>;
21
21
  waiting: import("tapable").SyncHook<[webpack.Compilation], void, import("tapable").UnsetAdditionalOptions>;
22
22
  canceled: import("tapable").SyncHook<[webpack.Compilation], void, import("tapable").UnsetAdditionalOptions>;
23
- error: import("tapable").SyncHook<[Error, webpack.Compilation], void, import("tapable").UnsetAdditionalOptions>;
23
+ error: import("tapable").SyncHook<[unknown, webpack.Compilation], void, import("tapable").UnsetAdditionalOptions>;
24
24
  issues: import("tapable").SyncWaterfallHook<[import("./issue/issue").Issue[], webpack.Compilation | undefined], void>;
25
25
  };
26
26
  apply(compiler: webpack.Compiler): void;
package/lib/plugin.js CHANGED
@@ -41,36 +41,36 @@ const rpc_1 = require("./rpc");
41
41
  const type_script_support_1 = require("./typescript/type-script-support");
42
42
  class ForkTsCheckerWebpackPlugin {
43
43
  constructor(options = {}) {
44
- const explorerSync = cosmiconfig_1.cosmiconfigSync('fork-ts-checker');
44
+ const explorerSync = (0, cosmiconfig_1.cosmiconfigSync)('fork-ts-checker');
45
45
  const { config: externalOptions } = explorerSync.search() || {};
46
46
  // first validate options directly passed to the constructor
47
47
  const config = { name: 'ForkTsCheckerWebpackPlugin' };
48
- schema_utils_1.validate(plugin_options_json_1.default, options, config);
49
- this.options = deepmerge_1.default(externalOptions || {}, options || {});
48
+ (0, schema_utils_1.validate)(plugin_options_json_1.default, options, config);
49
+ this.options = (0, deepmerge_1.default)(externalOptions || {}, options || {});
50
50
  // then validate merged options
51
- schema_utils_1.validate(plugin_options_json_1.default, this.options, config);
51
+ (0, schema_utils_1.validate)(plugin_options_json_1.default, this.options, config);
52
52
  }
53
53
  static getCompilerHooks(compiler) {
54
- return plugin_hooks_1.getPluginHooks(compiler);
54
+ return (0, plugin_hooks_1.getPluginHooks)(compiler);
55
55
  }
56
56
  apply(compiler) {
57
- const config = plugin_config_1.createPluginConfig(compiler, this.options);
58
- const state = plugin_state_1.createPluginState();
59
- type_script_support_1.assertTypeScriptSupport(config.typescript);
60
- const getIssuesWorker = rpc_1.createRpcWorker(path.resolve(__dirname, './typescript/worker/get-issues-worker.js'), config.typescript, config.typescript.memoryLimit);
61
- const getDependenciesWorker = rpc_1.createRpcWorker(path.resolve(__dirname, './typescript/worker/get-dependencies-worker.js'), config.typescript);
62
- tap_after_environment_to_patch_watching_1.tapAfterEnvironmentToPatchWatching(compiler, state);
63
- tap_start_to_run_workers_1.tapStartToRunWorkers(compiler, getIssuesWorker, getDependenciesWorker, config, state);
64
- tap_after_compile_to_add_dependencies_1.tapAfterCompileToAddDependencies(compiler, config, state);
65
- tap_stop_to_terminate_workers_1.tapStopToTerminateWorkers(compiler, getIssuesWorker, getDependenciesWorker, state);
66
- tap_error_to_log_message_1.tapErrorToLogMessage(compiler, config);
57
+ const config = (0, plugin_config_1.createPluginConfig)(compiler, this.options);
58
+ const state = (0, plugin_state_1.createPluginState)();
59
+ (0, type_script_support_1.assertTypeScriptSupport)(config.typescript);
60
+ const getIssuesWorker = (0, rpc_1.createRpcWorker)(path.resolve(__dirname, './typescript/worker/get-issues-worker.js'), config.typescript, config.typescript.memoryLimit);
61
+ const getDependenciesWorker = (0, rpc_1.createRpcWorker)(path.resolve(__dirname, './typescript/worker/get-dependencies-worker.js'), config.typescript);
62
+ (0, tap_after_environment_to_patch_watching_1.tapAfterEnvironmentToPatchWatching)(compiler, state);
63
+ (0, tap_start_to_run_workers_1.tapStartToRunWorkers)(compiler, getIssuesWorker, getDependenciesWorker, config, state);
64
+ (0, tap_after_compile_to_add_dependencies_1.tapAfterCompileToAddDependencies)(compiler, config, state);
65
+ (0, tap_stop_to_terminate_workers_1.tapStopToTerminateWorkers)(compiler, getIssuesWorker, getDependenciesWorker, state);
66
+ (0, tap_error_to_log_message_1.tapErrorToLogMessage)(compiler, config);
67
67
  }
68
68
  }
69
69
  exports.ForkTsCheckerWebpackPlugin = ForkTsCheckerWebpackPlugin;
70
70
  /**
71
71
  * Current version of the plugin
72
72
  */
73
- ForkTsCheckerWebpackPlugin.version = '7.0.0-alpha.15'; // will be replaced by the @semantic-release/exec
73
+ ForkTsCheckerWebpackPlugin.version = '7.0.0-alpha.16'; // will be replaced by the @semantic-release/exec
74
74
  /**
75
75
  * Default pools for the plugin concurrency limit
76
76
  */
@@ -44,7 +44,7 @@ function createRpcWorker(modulePath, data, memoryLimit) {
44
44
  }
45
45
  if (!(childProcess === null || childProcess === void 0 ? void 0 : childProcess.connected)) {
46
46
  childProcess = child_process.fork(modulePath, options);
47
- remoteMethod = wrap_rpc_1.wrapRpc(childProcess);
47
+ remoteMethod = (0, wrap_rpc_1.wrapRpc)(childProcess);
48
48
  }
49
49
  },
50
50
  terminate() {
@@ -19,9 +19,9 @@ function createTypeScriptEmbeddedExtension({ embeddedExtensions, getEmbeddedSour
19
19
  return embeddedSourceCache.get(fileName);
20
20
  }
21
21
  function parsePotentiallyEmbeddedFileName(fileName) {
22
- const extension = path_1.extname(fileName);
22
+ const extension = (0, path_1.extname)(fileName);
23
23
  const embeddedFileName = fileName.slice(0, fileName.length - extension.length);
24
- const embeddedExtension = path_1.extname(embeddedFileName);
24
+ const embeddedExtension = (0, path_1.extname)(embeddedFileName);
25
25
  return {
26
26
  extension,
27
27
  embeddedFileName,
@@ -13,7 +13,7 @@ function assertTypeScriptVueExtensionSupport(config) {
13
13
  catch (error) {
14
14
  throw new Error([
15
15
  `Could not initialize '${compilerName}'. When you use 'typescript.extensions.vue' option, make sure to install '${compilerName}' and that the version matches that of 'vue'.`,
16
- `Error details: ${error.message}`,
16
+ `Error details: ${String(error)}`,
17
17
  ].join('\n'));
18
18
  }
19
19
  }
@@ -108,7 +108,7 @@ function createTypeScriptVueExtension(config) {
108
108
  return createVueInlineScriptEmbeddedSource(paddedSourceText, script.attrs.lang);
109
109
  }
110
110
  }
111
- return type_script_embedded_extension_1.createTypeScriptEmbeddedExtension({
111
+ return (0, type_script_embedded_extension_1.createTypeScriptEmbeddedExtension)({
112
112
  embeddedExtensions: ['.vue'],
113
113
  getEmbeddedSource: getVueEmbeddedSource,
114
114
  });
@@ -61,7 +61,7 @@ function assertTypeScriptSupport(config) {
61
61
  ].join(os_1.default.EOL));
62
62
  }
63
63
  if (config.extensions.vue.enabled) {
64
- type_script_vue_extension_support_1.assertTypeScriptVueExtensionSupport(config.extensions.vue);
64
+ (0, type_script_vue_extension_support_1.assertTypeScriptVueExtensionSupport)(config.extensions.vue);
65
65
  }
66
66
  }
67
67
  exports.assertTypeScriptSupport = assertTypeScriptSupport;
@@ -25,7 +25,7 @@ function createTypeScriptWorkerConfig(compiler, options) {
25
25
  defaultCompilerOptions.declarationMap = false;
26
26
  }
27
27
  return Object.assign(Object.assign({ enabled: options !== false, memoryLimit: 2048, build: false, mode: 'write-tsbuildinfo', profile: false }, optionsAsObject), { configFile: configFile, configOverwrite: Object.assign(Object.assign({}, (optionsAsObject.configOverwrite || {})), { compilerOptions: Object.assign(Object.assign({}, defaultCompilerOptions), ((optionsAsObject.configOverwrite || {}).compilerOptions || {})) }), context: optionsAsObject.context || path_1.default.dirname(configFile), extensions: {
28
- vue: type_script_vue_extension_config_1.createTypeScriptVueExtensionConfig(optionsAsObject.extensions ? optionsAsObject.extensions.vue : undefined),
28
+ vue: (0, type_script_vue_extension_config_1.createTypeScriptVueExtensionConfig)(optionsAsObject.extensions ? optionsAsObject.extensions.vue : undefined),
29
29
  }, diagnosticOptions: Object.assign({ syntactic: false, semantic: true, declaration: false, global: false }, (optionsAsObject.diagnosticOptions || {})), typescriptPath: typescriptPath });
30
30
  }
31
31
  exports.createTypeScriptWorkerConfig = createTypeScriptWorkerConfig;
@@ -6,13 +6,13 @@ const dependencies_1 = require("./lib/dependencies");
6
6
  const system_1 = require("./lib/system");
7
7
  const getDependenciesWorker = ({ changedFiles = [], deletedFiles = [], }) => {
8
8
  system_1.system.invalidateCache();
9
- if (config_1.didConfigFileChanged({ changedFiles, deletedFiles })) {
10
- config_1.invalidateConfig();
11
- dependencies_1.invalidateDependencies();
9
+ if ((0, config_1.didConfigFileChanged)({ changedFiles, deletedFiles })) {
10
+ (0, config_1.invalidateConfig)();
11
+ (0, dependencies_1.invalidateDependencies)();
12
12
  }
13
- else if (config_1.didRootFilesChanged()) {
14
- dependencies_1.invalidateDependencies();
13
+ else if ((0, config_1.didRootFilesChanged)()) {
14
+ (0, dependencies_1.invalidateDependencies)();
15
15
  }
16
- return dependencies_1.getDependencies();
16
+ return (0, dependencies_1.getDependencies)();
17
17
  };
18
- rpc_1.exposeRpc(getDependenciesWorker);
18
+ (0, rpc_1.exposeRpc)(getDependenciesWorker);
@@ -24,37 +24,37 @@ const tsbuildinfo_1 = require("./lib/tsbuildinfo");
24
24
  const worker_config_1 = require("./lib/worker-config");
25
25
  const getIssuesWorker = ({ changedFiles = [], deletedFiles = [] }, watching) => __awaiter(void 0, void 0, void 0, function* () {
26
26
  system_1.system.invalidateCache();
27
- dependencies_1.invalidateDependencies();
28
- if (config_1.didConfigFileChanged({ changedFiles, deletedFiles })) {
29
- config_1.invalidateConfig();
30
- artifacts_1.invalidateArtifacts();
31
- diagnostics_1.invalidateDiagnostics();
32
- program_1.invalidateProgram(true);
33
- watch_program_1.invalidateWatchProgram(true);
34
- solution_builder_1.invalidateSolutionBuilder(true);
35
- tsbuildinfo_1.invalidateTsBuildInfo();
27
+ (0, dependencies_1.invalidateDependencies)();
28
+ if ((0, config_1.didConfigFileChanged)({ changedFiles, deletedFiles })) {
29
+ (0, config_1.invalidateConfig)();
30
+ (0, artifacts_1.invalidateArtifacts)();
31
+ (0, diagnostics_1.invalidateDiagnostics)();
32
+ (0, program_1.invalidateProgram)(true);
33
+ (0, watch_program_1.invalidateWatchProgram)(true);
34
+ (0, solution_builder_1.invalidateSolutionBuilder)(true);
35
+ (0, tsbuildinfo_1.invalidateTsBuildInfo)();
36
36
  }
37
- else if (config_1.didRootFilesChanged()) {
38
- artifacts_1.invalidateArtifacts();
39
- watch_program_1.invalidateWatchProgramRootFileNames();
40
- solution_builder_1.invalidateSolutionBuilder();
37
+ else if ((0, config_1.didRootFilesChanged)()) {
38
+ (0, artifacts_1.invalidateArtifacts)();
39
+ (0, watch_program_1.invalidateWatchProgramRootFileNames)();
40
+ (0, solution_builder_1.invalidateSolutionBuilder)();
41
41
  }
42
- artifacts_1.registerArtifacts();
43
- performance_1.enablePerformanceIfNeeded();
44
- const parseConfigIssues = config_1.getParseConfigIssues();
42
+ (0, artifacts_1.registerArtifacts)();
43
+ (0, performance_1.enablePerformanceIfNeeded)();
44
+ const parseConfigIssues = (0, config_1.getParseConfigIssues)();
45
45
  if (parseConfigIssues.length) {
46
46
  // report config parse issues and exit
47
47
  return parseConfigIssues;
48
48
  }
49
49
  // use proper implementation based on the config
50
50
  if (worker_config_1.config.build) {
51
- solution_builder_1.useSolutionBuilder();
51
+ (0, solution_builder_1.useSolutionBuilder)();
52
52
  }
53
53
  else if (watching) {
54
- watch_program_1.useWatchProgram();
54
+ (0, watch_program_1.useWatchProgram)();
55
55
  }
56
56
  else {
57
- program_1.useProgram();
57
+ (0, program_1.useProgram)();
58
58
  }
59
59
  // simulate file system events
60
60
  changedFiles.forEach((changedFile) => {
@@ -66,10 +66,10 @@ const getIssuesWorker = ({ changedFiles = [], deletedFiles = [] }, watching) =>
66
66
  // wait for all queued events to be processed
67
67
  yield system_1.system.waitForQueued();
68
68
  // retrieve all collected diagnostics as normalized issues
69
- const issues = diagnostics_1.getIssues();
70
- tracing_1.dumpTracingLegendIfNeeded();
71
- performance_1.printPerformanceMeasuresIfNeeded();
72
- performance_1.disablePerformanceIfNeeded();
69
+ const issues = (0, diagnostics_1.getIssues)();
70
+ (0, tracing_1.dumpTracingLegendIfNeeded)();
71
+ (0, performance_1.printPerformanceMeasuresIfNeeded)();
72
+ (0, performance_1.disablePerformanceIfNeeded)();
73
73
  return issues;
74
74
  });
75
- rpc_1.exposeRpc(getIssuesWorker);
75
+ (0, rpc_1.exposeRpc)(getIssuesWorker);
@@ -29,7 +29,7 @@ const worker_config_1 = require("./worker-config");
29
29
  let artifacts;
30
30
  function getArtifacts(force = false) {
31
31
  if (!artifacts || force) {
32
- const parsedConfig = config_1.getParsedConfig();
32
+ const parsedConfig = (0, config_1.getParsedConfig)();
33
33
  artifacts = getArtifactsWorker(parsedConfig, worker_config_1.config.context);
34
34
  }
35
35
  return artifacts;
@@ -50,7 +50,7 @@ function getArtifactsWorker(parsedConfig, configFileContext, processedConfigFile
50
50
  if (parsedConfig.options.outFile) {
51
51
  files.add(path.resolve(configFileContext, parsedConfig.options.outFile));
52
52
  }
53
- const tsBuildInfoPath = tsbuildinfo_1.getTsBuildInfoEmitPath(parsedConfig.options);
53
+ const tsBuildInfoPath = (0, tsbuildinfo_1.getTsBuildInfoEmitPath)(parsedConfig.options);
54
54
  if (tsBuildInfoPath) {
55
55
  files.add(path.resolve(configFileContext, tsBuildInfoPath));
56
56
  }
@@ -64,7 +64,7 @@ function getArtifactsWorker(parsedConfig, configFileContext, processedConfigFile
64
64
  // handle circular dependencies
65
65
  continue;
66
66
  }
67
- const parsedConfig = config_1.parseConfig(configFile, path.dirname(configFile));
67
+ const parsedConfig = (0, config_1.parseConfig)(configFile, path.dirname(configFile));
68
68
  const childArtifacts = getArtifactsWorker(parsedConfig, configFileContext, [
69
69
  ...processedConfigFiles,
70
70
  configFile,
@@ -39,7 +39,7 @@ for (const extension of extensions_1.extensions) {
39
39
  }
40
40
  }
41
41
  function parseConfig(configFileName, configFileContext, configOverwriteJSON = {}) {
42
- const configFilePath = forward_slash_1.forwardSlash(configFileName);
42
+ const configFilePath = (0, forward_slash_1.forwardSlash)(configFileName);
43
43
  const parsedConfigFileJSON = typescript_1.typescript.readConfigFile(configFilePath, parseConfigFileHost.readFile);
44
44
  const overwrittenConfigFileJSON = Object.assign(Object.assign(Object.assign({}, (parsedConfigFileJSON.config || {})), configOverwriteJSON), { compilerOptions: Object.assign(Object.assign({}, ((parsedConfigFileJSON.config || {}).compilerOptions || {})), (configOverwriteJSON.compilerOptions || {})) });
45
45
  const parsedConfigFile = typescript_1.typescript.parseJsonConfigFileContent(overwrittenConfigFileJSON, parseConfigFileHost, configFileContext);
@@ -47,7 +47,7 @@ function parseConfig(configFileName, configFileContext, configOverwriteJSON = {}
47
47
  }
48
48
  exports.parseConfig = parseConfig;
49
49
  function getParseConfigIssues() {
50
- const issues = diagnostics_1.createIssuesFromDiagnostics(parseConfigDiagnostics);
50
+ const issues = (0, diagnostics_1.createIssuesFromDiagnostics)(parseConfigDiagnostics);
51
51
  issues.forEach((issue) => {
52
52
  if (!issue.file) {
53
53
  issue.file = worker_config_1.config.configFile;
@@ -60,7 +60,7 @@ function getParsedConfig(force = false) {
60
60
  if (!parsedConfig || force) {
61
61
  parseConfigDiagnostics = [];
62
62
  parsedConfig = parseConfig(worker_config_1.config.configFile, worker_config_1.config.context, worker_config_1.config.configOverwrite);
63
- const configFilePath = forward_slash_1.forwardSlash(worker_config_1.config.configFile);
63
+ const configFilePath = (0, forward_slash_1.forwardSlash)(worker_config_1.config.configFile);
64
64
  const parsedConfigFileJSON = typescript_1.typescript.readConfigFile(configFilePath, parseConfigFileHost.readFile);
65
65
  const overwrittenConfigFileJSON = Object.assign(Object.assign(Object.assign({}, (parsedConfigFileJSON.config || {})), worker_config_1.config.configOverwrite), { compilerOptions: Object.assign(Object.assign({}, ((parsedConfigFileJSON.config || {}).compilerOptions || {})), (worker_config_1.config.configOverwrite.compilerOptions || {})) });
66
66
  parsedConfig = typescript_1.typescript.parseJsonConfigFileContent(overwrittenConfigFileJSON, parseConfigFileHost, worker_config_1.config.context);
@@ -28,7 +28,7 @@ const worker_config_1 = require("./worker-config");
28
28
  let dependencies;
29
29
  function getDependencies(force = false) {
30
30
  if (!dependencies || force) {
31
- const parsedConfig = config_1.getParsedConfig();
31
+ const parsedConfig = (0, config_1.getParsedConfig)();
32
32
  dependencies = getDependenciesWorker(parsedConfig, worker_config_1.config.context);
33
33
  for (const extension of extensions_1.extensions) {
34
34
  if (extension.extendDependencies) {
@@ -59,7 +59,7 @@ function getDependenciesWorker(parsedConfig, configFileContext, processedConfigF
59
59
  // handle circular dependencies
60
60
  continue;
61
61
  }
62
- const childParsedConfig = config_1.parseConfig(childConfigFilePath, childConfigContext);
62
+ const childParsedConfig = (0, config_1.parseConfig)(childConfigFilePath, childConfigContext);
63
63
  const childDependencies = getDependenciesWorker(childParsedConfig, childConfigContext, [
64
64
  ...processedConfigFiles,
65
65
  childConfigFilePath,
@@ -89,7 +89,7 @@ function createIssueFromDiagnostic(diagnostic) {
89
89
  };
90
90
  }
91
91
  function createIssuesFromDiagnostics(diagnostics) {
92
- let issues = issue_1.deduplicateAndSortIssues(diagnostics.map((diagnostic) => createIssueFromDiagnostic(diagnostic)));
92
+ let issues = (0, issue_1.deduplicateAndSortIssues)(diagnostics.map((diagnostic) => createIssueFromDiagnostic(diagnostic)));
93
93
  extensions_1.extensions.forEach((extension) => {
94
94
  if (extension.extendIssues) {
95
95
  issues = extension.extendIssues(issues);
@@ -7,5 +7,5 @@ const worker_config_1 = require("./worker-config");
7
7
  const extensions = [];
8
8
  exports.extensions = extensions;
9
9
  if ((_b = (_a = worker_config_1.config.extensions) === null || _a === void 0 ? void 0 : _a.vue) === null || _b === void 0 ? void 0 : _b.enabled) {
10
- extensions.push(type_script_vue_extension_1.createTypeScriptVueExtension(worker_config_1.config.extensions.vue));
10
+ extensions.push((0, type_script_vue_extension_1.createTypeScriptVueExtension)(worker_config_1.config.extensions.vue));
11
11
  }
@@ -61,8 +61,8 @@ function createDir(path) {
61
61
  memfs_1.fs.mkdirSync(real_file_system_1.realFileSystem.normalizePath(path), { recursive: true });
62
62
  }
63
63
  function writeFile(path, data) {
64
- if (!exists(path_1.dirname(path))) {
65
- createDir(path_1.dirname(path));
64
+ if (!exists((0, path_1.dirname)(path))) {
65
+ createDir((0, path_1.dirname)(path));
66
66
  }
67
67
  memfs_1.fs.writeFileSync(real_file_system_1.realFileSystem.normalizePath(path), data);
68
68
  }
@@ -47,7 +47,7 @@ exports.realFileSystem = {
47
47
  return getRealPath(path);
48
48
  },
49
49
  normalizePath(path) {
50
- return path_1.normalize(path);
50
+ return (0, path_1.normalize)(path);
51
51
  },
52
52
  writeFile(path, data) {
53
53
  writeFile(getRealPath(path), data);
@@ -71,14 +71,14 @@ exports.realFileSystem = {
71
71
  };
72
72
  // read methods
73
73
  function exists(path) {
74
- const normalizedPath = path_1.normalize(path);
74
+ const normalizedPath = (0, path_1.normalize)(path);
75
75
  if (!existsCache.has(normalizedPath)) {
76
76
  existsCache.set(normalizedPath, fs.existsSync(normalizedPath));
77
77
  }
78
78
  return !!existsCache.get(normalizedPath);
79
79
  }
80
80
  function readStats(path) {
81
- const normalizedPath = path_1.normalize(path);
81
+ const normalizedPath = (0, path_1.normalize)(path);
82
82
  if (!readStatsCache.has(normalizedPath)) {
83
83
  if (exists(normalizedPath)) {
84
84
  readStatsCache.set(normalizedPath, fs.statSync(normalizedPath));
@@ -87,7 +87,7 @@ function readStats(path) {
87
87
  return readStatsCache.get(normalizedPath);
88
88
  }
89
89
  function readFile(path, encoding) {
90
- const normalizedPath = path_1.normalize(path);
90
+ const normalizedPath = (0, path_1.normalize)(path);
91
91
  if (!readFileCache.has(normalizedPath)) {
92
92
  const stats = readStats(normalizedPath);
93
93
  if (stats && stats.isFile()) {
@@ -100,7 +100,7 @@ function readFile(path, encoding) {
100
100
  return readFileCache.get(normalizedPath);
101
101
  }
102
102
  function readDir(path) {
103
- const normalizedPath = path_1.normalize(path);
103
+ const normalizedPath = (0, path_1.normalize)(path);
104
104
  if (!readDirCache.has(normalizedPath)) {
105
105
  const stats = readStats(normalizedPath);
106
106
  if (stats && stats.isDirectory()) {
@@ -113,43 +113,43 @@ function readDir(path) {
113
113
  return readDirCache.get(normalizedPath) || [];
114
114
  }
115
115
  function getRealPath(path) {
116
- const normalizedPath = path_1.normalize(path);
116
+ const normalizedPath = (0, path_1.normalize)(path);
117
117
  if (!realPathCache.has(normalizedPath)) {
118
118
  let base = normalizedPath;
119
119
  let nested = '';
120
- while (base !== path_1.dirname(base)) {
120
+ while (base !== (0, path_1.dirname)(base)) {
121
121
  if (exists(base)) {
122
- realPathCache.set(normalizedPath, path_1.normalize(path_1.join(fs.realpathSync(base), nested)));
122
+ realPathCache.set(normalizedPath, (0, path_1.normalize)((0, path_1.join)(fs.realpathSync(base), nested)));
123
123
  break;
124
124
  }
125
- nested = path_1.join(path_1.basename(base), nested);
126
- base = path_1.dirname(base);
125
+ nested = (0, path_1.join)((0, path_1.basename)(base), nested);
126
+ base = (0, path_1.dirname)(base);
127
127
  }
128
128
  }
129
129
  return realPathCache.get(normalizedPath) || normalizedPath;
130
130
  }
131
131
  function createDir(path) {
132
- const normalizedPath = path_1.normalize(path);
132
+ const normalizedPath = (0, path_1.normalize)(path);
133
133
  fs.mkdirSync(normalizedPath, { recursive: true });
134
134
  // update cache
135
135
  existsCache.set(normalizedPath, true);
136
- if (readDirCache.has(path_1.dirname(normalizedPath))) {
137
- readDirCache.delete(path_1.dirname(normalizedPath));
136
+ if (readDirCache.has((0, path_1.dirname)(normalizedPath))) {
137
+ readDirCache.delete((0, path_1.dirname)(normalizedPath));
138
138
  }
139
139
  if (readStatsCache.has(normalizedPath)) {
140
140
  readStatsCache.delete(normalizedPath);
141
141
  }
142
142
  }
143
143
  function writeFile(path, data) {
144
- const normalizedPath = path_1.normalize(path);
145
- if (!exists(path_1.dirname(normalizedPath))) {
146
- createDir(path_1.dirname(normalizedPath));
144
+ const normalizedPath = (0, path_1.normalize)(path);
145
+ if (!exists((0, path_1.dirname)(normalizedPath))) {
146
+ createDir((0, path_1.dirname)(normalizedPath));
147
147
  }
148
148
  fs.writeFileSync(normalizedPath, data);
149
149
  // update cache
150
150
  existsCache.set(normalizedPath, true);
151
- if (readDirCache.has(path_1.dirname(normalizedPath))) {
152
- readDirCache.delete(path_1.dirname(normalizedPath));
151
+ if (readDirCache.has((0, path_1.dirname)(normalizedPath))) {
152
+ readDirCache.delete((0, path_1.dirname)(normalizedPath));
153
153
  }
154
154
  if (readStatsCache.has(normalizedPath)) {
155
155
  readStatsCache.delete(normalizedPath);
@@ -160,12 +160,12 @@ function writeFile(path, data) {
160
160
  }
161
161
  function deleteFile(path) {
162
162
  if (exists(path)) {
163
- const normalizedPath = path_1.normalize(path);
163
+ const normalizedPath = (0, path_1.normalize)(path);
164
164
  fs.unlinkSync(normalizedPath);
165
165
  // update cache
166
166
  existsCache.set(normalizedPath, false);
167
- if (readDirCache.has(path_1.dirname(normalizedPath))) {
168
- readDirCache.delete(path_1.dirname(normalizedPath));
167
+ if (readDirCache.has((0, path_1.dirname)(normalizedPath))) {
168
+ readDirCache.delete((0, path_1.dirname)(normalizedPath));
169
169
  }
170
170
  if (readStatsCache.has(normalizedPath)) {
171
171
  readStatsCache.delete(normalizedPath);
@@ -177,8 +177,8 @@ function deleteFile(path) {
177
177
  }
178
178
  function updateTimes(path, atime, mtime) {
179
179
  if (exists(path)) {
180
- const normalizedPath = path_1.normalize(path);
181
- fs.utimesSync(path_1.normalize(path), atime, mtime);
180
+ const normalizedPath = (0, path_1.normalize)(path);
181
+ fs.utimesSync((0, path_1.normalize)(path), atime, mtime);
182
182
  // update cache
183
183
  if (readStatsCache.has(normalizedPath)) {
184
184
  readStatsCache.delete(normalizedPath);
@@ -6,7 +6,7 @@ const system_1 = require("../system");
6
6
  const typescript_1 = require("../typescript");
7
7
  const watch_compiler_host_1 = require("./watch-compiler-host");
8
8
  function createWatchSolutionBuilderHost(parsedConfig, createProgram, reportDiagnostic, reportWatchStatus, reportSolutionBuilderStatus, afterProgramCreate, afterProgramEmitAndDiagnostics) {
9
- const controlledWatchCompilerHost = watch_compiler_host_1.createWatchCompilerHost(parsedConfig, createProgram, reportDiagnostic, reportWatchStatus, afterProgramCreate);
9
+ const controlledWatchCompilerHost = (0, watch_compiler_host_1.createWatchCompilerHost)(parsedConfig, createProgram, reportDiagnostic, reportWatchStatus, afterProgramCreate);
10
10
  let controlledWatchSolutionBuilderHost = Object.assign(Object.assign({}, controlledWatchCompilerHost), { reportDiagnostic(diagnostic) {
11
11
  if (reportDiagnostic) {
12
12
  reportDiagnostic(diagnostic);
@@ -8,9 +8,9 @@ const typescript_1 = require("../typescript");
8
8
  let compilerHost;
9
9
  let program;
10
10
  function useProgram() {
11
- const parsedConfig = config_1.getParsedConfig();
11
+ const parsedConfig = (0, config_1.getParsedConfig)();
12
12
  if (!compilerHost) {
13
- compilerHost = compiler_host_1.createCompilerHost(parsedConfig);
13
+ compilerHost = (0, compiler_host_1.createCompilerHost)(parsedConfig);
14
14
  }
15
15
  if (!program) {
16
16
  program = typescript_1.typescript.createProgram({
@@ -20,7 +20,7 @@ function useProgram() {
20
20
  host: compilerHost,
21
21
  });
22
22
  }
23
- diagnostics_1.updateDiagnostics(config_1.getConfigFilePathFromProgram(program), diagnostics_1.getDiagnosticsOfProgram(program));
23
+ (0, diagnostics_1.updateDiagnostics)((0, config_1.getConfigFilePathFromProgram)(program), (0, diagnostics_1.getDiagnosticsOfProgram)(program));
24
24
  }
25
25
  exports.useProgram = useProgram;
26
26
  function invalidateProgram(withHost = false) {
@@ -12,16 +12,16 @@ let solutionBuilderHost;
12
12
  let solutionBuilder;
13
13
  function useSolutionBuilder() {
14
14
  if (!solutionBuilderHost) {
15
- const parsedConfig = config_1.getParsedConfig();
16
- solutionBuilderHost = watch_solution_builder_host_1.createWatchSolutionBuilderHost(parsedConfig, (rootNames, compilerOptions, host, oldProgram, configFileParsingDiagnostics, projectReferences) => {
15
+ const parsedConfig = (0, config_1.getParsedConfig)();
16
+ solutionBuilderHost = (0, watch_solution_builder_host_1.createWatchSolutionBuilderHost)(parsedConfig, (rootNames, compilerOptions, host, oldProgram, configFileParsingDiagnostics, projectReferences) => {
17
17
  if (compilerOptions) {
18
- tracing_1.startTracingIfNeeded(compilerOptions);
18
+ (0, tracing_1.startTracingIfNeeded)(compilerOptions);
19
19
  }
20
20
  return typescript_1.typescript.createSemanticDiagnosticsBuilderProgram(rootNames, compilerOptions, host, oldProgram, configFileParsingDiagnostics, projectReferences);
21
21
  }, undefined, undefined, undefined, undefined, (builderProgram) => {
22
- diagnostics_1.updateDiagnostics(config_1.getConfigFilePathFromBuilderProgram(builderProgram), diagnostics_1.getDiagnosticsOfProgram(builderProgram));
23
- tsbuildinfo_1.emitTsBuildInfoIfNeeded(builderProgram);
24
- tracing_1.stopTracingIfNeeded(builderProgram);
22
+ (0, diagnostics_1.updateDiagnostics)((0, config_1.getConfigFilePathFromBuilderProgram)(builderProgram), (0, diagnostics_1.getDiagnosticsOfProgram)(builderProgram));
23
+ (0, tsbuildinfo_1.emitTsBuildInfoIfNeeded)(builderProgram);
24
+ (0, tracing_1.stopTracingIfNeeded)(builderProgram);
25
25
  });
26
26
  }
27
27
  if (!solutionBuilder) {
@@ -13,16 +13,16 @@ let watchProgram;
13
13
  let shouldUpdateRootFiles = false;
14
14
  function useWatchProgram() {
15
15
  if (!watchCompilerHost) {
16
- const parsedConfig = config_1.getParsedConfig();
17
- watchCompilerHost = watch_compiler_host_1.createWatchCompilerHost(parsedConfig, (rootNames, compilerOptions, host, oldProgram, configFileParsingDiagnostics, projectReferences) => {
16
+ const parsedConfig = (0, config_1.getParsedConfig)();
17
+ watchCompilerHost = (0, watch_compiler_host_1.createWatchCompilerHost)(parsedConfig, (rootNames, compilerOptions, host, oldProgram, configFileParsingDiagnostics, projectReferences) => {
18
18
  if (compilerOptions) {
19
- tracing_1.startTracingIfNeeded(compilerOptions);
19
+ (0, tracing_1.startTracingIfNeeded)(compilerOptions);
20
20
  }
21
21
  return typescript_1.typescript.createSemanticDiagnosticsBuilderProgram(rootNames, compilerOptions, host, oldProgram, configFileParsingDiagnostics, projectReferences);
22
22
  }, undefined, undefined, (builderProgram) => {
23
- diagnostics_1.updateDiagnostics(config_1.getConfigFilePathFromBuilderProgram(builderProgram), diagnostics_1.getDiagnosticsOfProgram(builderProgram));
24
- tsbuildinfo_1.emitTsBuildInfoIfNeeded(builderProgram);
25
- tracing_1.stopTracingIfNeeded(builderProgram);
23
+ (0, diagnostics_1.updateDiagnostics)((0, config_1.getConfigFilePathFromBuilderProgram)(builderProgram), (0, diagnostics_1.getDiagnosticsOfProgram)(builderProgram));
24
+ (0, tsbuildinfo_1.emitTsBuildInfoIfNeeded)(builderProgram);
25
+ (0, tracing_1.stopTracingIfNeeded)(builderProgram);
26
26
  });
27
27
  watchProgram = undefined;
28
28
  }
@@ -31,7 +31,7 @@ function useWatchProgram() {
31
31
  }
32
32
  if (shouldUpdateRootFiles) {
33
33
  // we have to update root files manually as don't use config file as a program input
34
- watchProgram.updateRootFileNames(dependencies_1.getDependencies().files);
34
+ watchProgram.updateRootFileNames((0, dependencies_1.getDependencies)().files);
35
35
  shouldUpdateRootFiles = false;
36
36
  }
37
37
  }
@@ -68,7 +68,7 @@ exports.system = Object.assign(Object.assign({}, typescript_1.typescript.sys), {
68
68
  const dirents = getReadFileSystem(path).readDir(path);
69
69
  return dirents
70
70
  .filter((dirent) => dirent.isDirectory() ||
71
- (dirent.isSymbolicLink() && exports.system.directoryExists(path_1.join(path, dirent.name))))
71
+ (dirent.isSymbolicLink() && exports.system.directoryExists((0, path_1.join)(path, dirent.name))))
72
72
  .map((dirent) => dirent.name);
73
73
  },
74
74
  getModifiedTime(path) {
@@ -168,24 +168,24 @@ function invokeFileWatchers(path, event) {
168
168
  const fileWatcherCallbacks = fileWatcherCallbacksMap.get(normalizedPath);
169
169
  if (fileWatcherCallbacks) {
170
170
  // typescript expects normalized paths with posix forward slash
171
- fileWatcherCallbacks.forEach((fileWatcherCallback) => fileWatcherCallback(forward_slash_1.forwardSlash(normalizedPath), event));
171
+ fileWatcherCallbacks.forEach((fileWatcherCallback) => fileWatcherCallback((0, forward_slash_1.forwardSlash)(normalizedPath), event));
172
172
  }
173
173
  }
174
174
  function invokeDirectoryWatchers(path) {
175
175
  const normalizedPath = real_file_system_1.realFileSystem.normalizePath(path);
176
- const directory = path_1.dirname(normalizedPath);
177
- if (ignoredPaths.some((ignoredPath) => forward_slash_1.forwardSlash(normalizedPath).includes(ignoredPath))) {
176
+ const directory = (0, path_1.dirname)(normalizedPath);
177
+ if (ignoredPaths.some((ignoredPath) => (0, forward_slash_1.forwardSlash)(normalizedPath).includes(ignoredPath))) {
178
178
  return;
179
179
  }
180
180
  const directoryWatcherCallbacks = directoryWatcherCallbacksMap.get(directory);
181
181
  if (directoryWatcherCallbacks) {
182
- directoryWatcherCallbacks.forEach((directoryWatcherCallback) => directoryWatcherCallback(forward_slash_1.forwardSlash(normalizedPath)));
182
+ directoryWatcherCallbacks.forEach((directoryWatcherCallback) => directoryWatcherCallback((0, forward_slash_1.forwardSlash)(normalizedPath)));
183
183
  }
184
184
  recursiveDirectoryWatcherCallbacksMap.forEach((recursiveDirectoryWatcherCallbacks, watchedDirectory) => {
185
185
  if (watchedDirectory === directory ||
186
186
  (directory.startsWith(watchedDirectory) &&
187
- forward_slash_1.forwardSlash(directory)[watchedDirectory.length] === '/')) {
188
- recursiveDirectoryWatcherCallbacks.forEach((recursiveDirectoryWatcherCallback) => recursiveDirectoryWatcherCallback(forward_slash_1.forwardSlash(normalizedPath)));
187
+ (0, forward_slash_1.forwardSlash)(directory)[watchedDirectory.length] === '/')) {
188
+ recursiveDirectoryWatcherCallbacks.forEach((recursiveDirectoryWatcherCallback) => recursiveDirectoryWatcherCallback((0, forward_slash_1.forwardSlash)(normalizedPath)));
189
189
  }
190
190
  });
191
191
  }
@@ -8,7 +8,7 @@ const worker_config_1 = require("./worker-config");
8
8
  const tracing = typescript_1.typescript.tracing;
9
9
  function startTracingIfNeeded(compilerOptions) {
10
10
  if (compilerOptions.generateTrace && tracing) {
11
- tracing.startTracing(config_1.getConfigFilePathFromCompilerOptions(compilerOptions), compilerOptions.generateTrace, worker_config_1.config.build);
11
+ tracing.startTracing((0, config_1.getConfigFilePathFromCompilerOptions)(compilerOptions), compilerOptions.generateTrace, worker_config_1.config.build);
12
12
  }
13
13
  }
14
14
  exports.startTracingIfNeeded = startTracingIfNeeded;
@@ -26,7 +26,7 @@ const system_1 = require("./system");
26
26
  const typescript_1 = require("./typescript");
27
27
  const worker_config_1 = require("./worker-config");
28
28
  function invalidateTsBuildInfo() {
29
- const parsedConfig = config_1.getParsedConfig();
29
+ const parsedConfig = (0, config_1.getParsedConfig)();
30
30
  // try to remove outdated .tsbuildinfo file for incremental mode
31
31
  if (typeof typescript_1.typescript.getTsBuildInfoEmitOutputFilePath === 'function' &&
32
32
  worker_config_1.config.mode !== 'readonly' &&
@@ -44,7 +44,7 @@ function invalidateTsBuildInfo() {
44
44
  }
45
45
  exports.invalidateTsBuildInfo = invalidateTsBuildInfo;
46
46
  function emitTsBuildInfoIfNeeded(builderProgram) {
47
- const parsedConfig = config_1.getParsedConfig();
47
+ const parsedConfig = (0, config_1.getParsedConfig)();
48
48
  if (worker_config_1.config.mode !== 'readonly' && parsedConfig && isIncrementalEnabled(parsedConfig.options)) {
49
49
  const program = builderProgram.getProgram();
50
50
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.config = void 0;
4
4
  const rpc_1 = require("../../../rpc");
5
- exports.config = rpc_1.getRpcWorkerData();
5
+ exports.config = (0, rpc_1.getRpcWorkerData)();
@@ -7,7 +7,7 @@ exports.relativeToContext = void 0;
7
7
  const path_1 = __importDefault(require("path"));
8
8
  const forward_slash_1 = require("./forward-slash");
9
9
  function relativeToContext(file, context) {
10
- let fileInContext = forward_slash_1.forwardSlash(path_1.default.relative(context, file));
10
+ let fileInContext = (0, forward_slash_1.forwardSlash)(path_1.default.relative(context, file));
11
11
  if (!fileInContext.startsWith('../')) {
12
12
  fileInContext = './' + fileInContext;
13
13
  }
@@ -15,7 +15,7 @@ function createIsIgnored(ignored, excluded) {
15
15
  const ignoredFunctions = ignoredPatterns.map((pattern) => {
16
16
  // ensure patterns are valid - see https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/issues/594
17
17
  if (typeof pattern === 'string') {
18
- return (path) => minimatch_1.default(path, pattern);
18
+ return (path) => (0, minimatch_1.default)(path, pattern);
19
19
  }
20
20
  else if (pattern instanceof RegExp) {
21
21
  return (path) => pattern.test(path);
@@ -39,8 +39,8 @@ class InclusiveNodeWatchFileSystem {
39
39
  this.paused = true;
40
40
  this.watch = (files, dirs, missing, startTime, options, callback, callbackUndelayed) => {
41
41
  var _a, _b, _c, _d;
42
- const { debug } = infrastructure_logger_1.getInfrastructureLogger(this.compiler);
43
- files_change_1.clearFilesChange(this.compiler);
42
+ const { debug } = (0, infrastructure_logger_1.getInfrastructureLogger)(this.compiler);
43
+ (0, files_change_1.clearFilesChange)(this.compiler);
44
44
  const isIgnored = createIsIgnored(options === null || options === void 0 ? void 0 : options.ignored, ((_a = this.pluginState.lastDependencies) === null || _a === void 0 ? void 0 : _a.excluded) || []);
45
45
  // use standard watch file system for files and missing
46
46
  const standardWatcher = this.watchFileSystem.watch(files, dirs, missing, startTime, options, callback, callbackUndelayed);
@@ -51,7 +51,7 @@ class InclusiveNodeWatchFileSystem {
51
51
  if (!isIgnored(file)) {
52
52
  debug('Detected file change', file);
53
53
  this.deletedFiles.delete(file);
54
- files_change_1.updateFilesChange(this.compiler, { changedFiles: [file] });
54
+ (0, files_change_1.updateFilesChange)(this.compiler, { changedFiles: [file] });
55
55
  }
56
56
  else {
57
57
  debug("Detected file change but it's ignored", file);
@@ -68,7 +68,7 @@ class InclusiveNodeWatchFileSystem {
68
68
  if (!isIgnored(file)) {
69
69
  debug('Detected file remove', file);
70
70
  this.deletedFiles.add(file);
71
- files_change_1.updateFilesChange(this.compiler, { deletedFiles: [file] });
71
+ (0, files_change_1.updateFilesChange)(this.compiler, { deletedFiles: [file] });
72
72
  }
73
73
  else {
74
74
  debug("Detected file remove but it's ignored", file);
@@ -103,7 +103,7 @@ class InclusiveNodeWatchFileSystem {
103
103
  if (this.paused) {
104
104
  return;
105
105
  }
106
- const extension = path_1.extname(file);
106
+ const extension = (0, path_1.extname)(file);
107
107
  const supportedExtensions = ((_a = this.pluginState.lastDependencies) === null || _a === void 0 ? void 0 : _a.extensions) || [];
108
108
  if (!supportedExtensions.includes(extension)) {
109
109
  debug('Detected new file add but extension is not supported', file);
@@ -111,7 +111,7 @@ class InclusiveNodeWatchFileSystem {
111
111
  }
112
112
  debug('Detected new file add', file);
113
113
  this.deletedFiles.delete(file);
114
- files_change_1.updateFilesChange(this.compiler, { changedFiles: [file] });
114
+ (0, files_change_1.updateFilesChange)(this.compiler, { changedFiles: [file] });
115
115
  (_b = this.watcher) === null || _b === void 0 ? void 0 : _b._onChange(dirToWatch, (stats === null || stats === void 0 ? void 0 : stats.mtimeMs) || (stats === null || stats === void 0 ? void 0 : stats.ctimeMs) || 1, file, 'rename');
116
116
  });
117
117
  dirWatcher.on('unlink', (file) => {
@@ -119,7 +119,7 @@ class InclusiveNodeWatchFileSystem {
119
119
  if (this.paused) {
120
120
  return;
121
121
  }
122
- const extension = path_1.extname(file);
122
+ const extension = (0, path_1.extname)(file);
123
123
  const supportedExtensions = ((_a = this.pluginState.lastDependencies) === null || _a === void 0 ? void 0 : _a.extensions) || [];
124
124
  if (!supportedExtensions.includes(extension)) {
125
125
  debug('Detected new file remove but extension is not supported', file);
@@ -131,14 +131,14 @@ class InclusiveNodeWatchFileSystem {
131
131
  }
132
132
  debug('Detected new file remove', file);
133
133
  this.deletedFiles.add(file);
134
- files_change_1.updateFilesChange(this.compiler, { deletedFiles: [file] });
134
+ (0, files_change_1.updateFilesChange)(this.compiler, { deletedFiles: [file] });
135
135
  (_b = this.watcher) === null || _b === void 0 ? void 0 : _b._onRemove(dirToWatch, file, 'rename');
136
136
  });
137
137
  this.dirsWatchers.set(dirToWatch, dirWatcher);
138
138
  });
139
139
  this.paused = false;
140
140
  return Object.assign(Object.assign({}, standardWatcher), { close: () => {
141
- files_change_1.clearFilesChange(this.compiler);
141
+ (0, files_change_1.clearFilesChange)(this.compiler);
142
142
  if (standardWatcher) {
143
143
  standardWatcher.close();
144
144
  }
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "fork-ts-checker-webpack-plugin",
3
- "version": "7.0.0-alpha.15",
3
+ "version": "7.0.0-alpha.16",
4
4
  "description": "Runs typescript type checker and linter on separate process.",
5
5
  "keywords": [
6
- "fast",
7
- "fork",
8
- "linter",
9
6
  "webpack",
10
7
  "plugin",
11
- "ts-loader",
12
8
  "typescript",
13
- "webpack"
9
+ "typecheck",
10
+ "ts-loader",
11
+ "webpack",
12
+ "fork",
13
+ "fast"
14
14
  ],
15
15
  "bugs": {
16
16
  "url": "https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/issues"
@@ -55,18 +55,17 @@
55
55
  }
56
56
  },
57
57
  "dependencies": {
58
- "@babel/code-frame": "^7.14.5",
58
+ "@babel/code-frame": "^7.16.7",
59
59
  "chalk": "^4.1.2",
60
- "chokidar": "^3.5.2",
61
- "cosmiconfig": "^7.0.0",
60
+ "chokidar": "^3.5.3",
61
+ "cosmiconfig": "^7.0.1",
62
62
  "deepmerge": "^4.2.2",
63
63
  "fs-extra": "^10.0.0",
64
- "glob": "^7.1.7",
65
- "memfs": "^3.2.2",
64
+ "memfs": "^3.4.1",
66
65
  "minimatch": "^3.0.4",
67
- "schema-utils": "3.1.1",
66
+ "schema-utils": "4.0.0",
68
67
  "semver": "^7.3.5",
69
- "tapable": "^2.0.0"
68
+ "tapable": "^2.2.1"
70
69
  },
71
70
  "peerDependencies": {
72
71
  "typescript": ">3.6.0",
@@ -79,7 +78,7 @@
79
78
  }
80
79
  },
81
80
  "devDependencies": {
82
- "@commitlint/config-conventional": "^13.1.0",
81
+ "@commitlint/config-conventional": "^16.0.0",
83
82
  "@semantic-release/commit-analyzer": "^8.0.1",
84
83
  "@semantic-release/exec": "^5.0.0",
85
84
  "@semantic-release/github": "^7.2.3",
@@ -87,38 +86,38 @@
87
86
  "@semantic-release/release-notes-generator": "^9.0.3",
88
87
  "@types/babel__code-frame": "^7.0.3",
89
88
  "@types/cross-spawn": "^6.0.2",
90
- "@types/fs-extra": "^9.0.12",
91
- "@types/jest": "^26.0.24",
89
+ "@types/fs-extra": "^9.0.13",
90
+ "@types/jest": "^27.4.0",
92
91
  "@types/json-schema": "^7.0.9",
93
92
  "@types/minimatch": "^3.0.5",
94
93
  "@types/mock-fs": "^4.13.1",
95
94
  "@types/node": "^16.4.13",
96
- "@types/rimraf": "^3.0.1",
97
- "@types/semver": "^7.3.8",
98
- "@typescript-eslint/eslint-plugin": "^5.1.0",
99
- "@typescript-eslint/parser": "^5.1.0",
100
- "commitlint": "^13.1.0",
95
+ "@types/rimraf": "^3.0.2",
96
+ "@types/semver": "^7.3.9",
97
+ "@typescript-eslint/eslint-plugin": "^5.10.1",
98
+ "@typescript-eslint/parser": "^5.10.1",
99
+ "commitlint": "^16.1.0",
101
100
  "cross-env": "^7.0.3",
102
- "eslint": "^7.32.0",
103
- "eslint-plugin-import": "^2.25.2",
101
+ "eslint": "^8.8.0",
102
+ "eslint-plugin-import": "^2.25.4",
104
103
  "eslint-plugin-node": "^11.1.0",
105
104
  "eslint-plugin-prettier": "^4.0.0",
106
- "git-cz": "^4.7.6",
107
- "husky": "^7.0.0",
108
- "jest": "^27.0.6",
109
- "jest-circus": "^27.0.6",
110
- "jest-environment-node": "^27.0.6",
105
+ "git-cz": "^4.8.0",
106
+ "husky": "^7.0.4",
107
+ "jest": "^27.4.7",
108
+ "jest-circus": "^27.4.6",
109
+ "jest-environment-node": "^27.4.6",
111
110
  "json-schema": "^0.3.0",
112
111
  "karton": "^0.4.1",
113
112
  "lint-staged": "^11.1.2",
114
- "mock-fs": "^5.0.0",
115
- "prettier": "^2.3.2",
113
+ "mock-fs": "^5.1.2",
114
+ "prettier": "^2.5.1",
116
115
  "rimraf": "^3.0.2",
117
116
  "semantic-release": "^17.4.4",
118
117
  "strip-ansi": "^6.0.0",
119
- "ts-jest": "^27.0.4",
120
- "typescript": "^4.3.5",
121
- "webpack": "^5.49.0"
118
+ "ts-jest": "^27.1.3",
119
+ "typescript": "^4.5.5",
120
+ "webpack": "^5.67.0"
122
121
  },
123
122
  "engines": {
124
123
  "node": ">=12.13.0",