ts-checker-rspack-plugin 1.6.0 → 1.6.2

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 (56) hide show
  1. package/lib/formatter/basic-formatter.d.ts +1 -1
  2. package/lib/formatter/code-frame-formatter.d.ts +2 -2
  3. package/lib/formatter/formatter-config.d.ts +2 -2
  4. package/lib/formatter/formatter-options.d.ts +3 -3
  5. package/lib/formatter/formatter.d.ts +1 -1
  6. package/lib/formatter/index.d.ts +6 -6
  7. package/lib/formatter/rspack-formatter.d.ts +1 -1
  8. package/lib/formatter/stats-formatter.d.ts +1 -1
  9. package/lib/getDependenciesWorker.js +4 -4
  10. package/lib/getIssuesWorker.js +4 -4
  11. package/lib/hooks/intercept-done-to-get-dev-server-tap.d.ts +2 -2
  12. package/lib/hooks/tap-after-compile-to-add-dependencies.d.ts +2 -2
  13. package/lib/hooks/tap-after-compile-to-get-issues.d.ts +2 -2
  14. package/lib/hooks/tap-after-environment-to-patch-watching.d.ts +1 -1
  15. package/lib/hooks/tap-done-to-async-get-issues.d.ts +2 -2
  16. package/lib/hooks/tap-error-to-log-message.d.ts +1 -1
  17. package/lib/hooks/tap-start-to-run-type-script-go.d.ts +2 -2
  18. package/lib/hooks/tap-start-to-run-workers.d.ts +5 -5
  19. package/lib/hooks/tap-stop-to-terminate-workers.d.ts +2 -2
  20. package/lib/index.d.ts +1 -1
  21. package/lib/index.js +248 -102
  22. package/lib/issue/index.d.ts +3 -3
  23. package/lib/issue/issue-config.d.ts +3 -3
  24. package/lib/issue/issue-location.d.ts +1 -1
  25. package/lib/issue/issue-match.d.ts +2 -2
  26. package/lib/issue/issue-options.d.ts +3 -3
  27. package/lib/issue/issue-predicate.d.ts +1 -1
  28. package/lib/issue/issue-rspack-error.d.ts +2 -2
  29. package/lib/issue/issue.d.ts +2 -2
  30. package/lib/plugin-config.d.ts +5 -5
  31. package/lib/plugin-hooks.d.ts +10 -6
  32. package/lib/plugin-options.d.ts +4 -4
  33. package/lib/plugin-pools.d.ts +1 -1
  34. package/lib/plugin-state.d.ts +3 -3
  35. package/lib/plugin.d.ts +8 -6
  36. package/lib/rpc/index.d.ts +6 -6
  37. package/lib/rpc/rpc-worker.d.ts +1 -1
  38. package/lib/rpc/wrap-rpc.d.ts +1 -1
  39. package/lib/typescript/type-script-go-package.d.ts +2 -2
  40. package/lib/typescript/type-script-go-runner.d.ts +9 -10
  41. package/lib/typescript/type-script-support.d.ts +1 -1
  42. package/lib/typescript/type-script-worker-config.d.ts +5 -5
  43. package/lib/typescript/type-script-worker-options.d.ts +2 -2
  44. package/lib/typescript/worker/get-dependencies-worker.d.ts +2 -2
  45. package/lib/typescript/worker/get-issues-worker.d.ts +3 -3
  46. package/lib/typescript/worker/lib/artifacts.d.ts +1 -1
  47. package/lib/typescript/worker/lib/config.d.ts +3 -3
  48. package/lib/typescript/worker/lib/dependencies.d.ts +1 -1
  49. package/lib/typescript/worker/lib/diagnostics.d.ts +1 -1
  50. package/lib/typescript/worker/lib/file-system/mem-file-system.d.ts +1 -1
  51. package/lib/typescript/worker/lib/file-system/passive-file-system.d.ts +1 -1
  52. package/lib/typescript/worker/lib/file-system/real-file-system.d.ts +1 -1
  53. package/lib/typescript/worker/lib/system.d.ts +1 -1
  54. package/lib/typescript/worker/lib/worker-config.d.ts +1 -1
  55. package/lib/watch/inclusive-node-watch-file-system.d.ts +4 -4
  56. package/package.json +17 -19
@@ -1,3 +1,3 @@
1
- import type { Formatter } from './formatter';
1
+ import type { Formatter } from './formatter.js';
2
2
  declare function createBasicFormatter(): Formatter;
3
3
  export { createBasicFormatter };
@@ -1,5 +1,5 @@
1
- import type { Formatter } from './formatter';
2
- import type { BabelCodeFrameOptions } from './types/babel__code-frame';
1
+ import type { Formatter } from './formatter.js';
2
+ import type { BabelCodeFrameOptions } from './types/babel__code-frame.js';
3
3
  declare function createCodeFrameFormatter(options?: BabelCodeFrameOptions): Formatter;
4
4
  export { createCodeFrameFormatter };
5
5
  export type { BabelCodeFrameOptions };
@@ -1,5 +1,5 @@
1
- import type { Formatter, FormatterPathType } from './formatter';
2
- import type { FormatterOptions } from './formatter-options';
1
+ import type { Formatter, FormatterPathType } from './formatter.js';
2
+ import type { FormatterOptions } from './formatter-options.js';
3
3
  type FormatterConfig = {
4
4
  format: Formatter;
5
5
  pathType: FormatterPathType;
@@ -1,5 +1,5 @@
1
- import type { Formatter, FormatterPathType } from './formatter';
2
- import type { BabelCodeFrameOptions } from './types/babel__code-frame';
1
+ import type { Formatter, FormatterPathType } from './formatter.js';
2
+ import type { BabelCodeFrameOptions } from './types/babel__code-frame.js';
3
3
  type FormatterType = 'basic' | 'codeframe';
4
4
  type BasicFormatterOptions = {
5
5
  type: 'basic';
@@ -11,4 +11,4 @@ type CodeframeFormatterOptions = {
11
11
  options?: BabelCodeFrameOptions;
12
12
  };
13
13
  type FormatterOptions = undefined | FormatterType | BasicFormatterOptions | CodeframeFormatterOptions | Formatter;
14
- export type { FormatterOptions, FormatterType, BasicFormatterOptions, CodeframeFormatterOptions, };
14
+ export type { FormatterOptions, FormatterType, BasicFormatterOptions, CodeframeFormatterOptions };
@@ -1,4 +1,4 @@
1
- import type { Issue } from '../issue';
1
+ import type { Issue } from '../issue/index.js';
2
2
  type Formatter = (issue: Issue) => string;
3
3
  type FormatterPathType = 'relative' | 'absolute';
4
4
  export type { Formatter, FormatterPathType };
@@ -1,6 +1,6 @@
1
- export * from './formatter';
2
- export * from './basic-formatter';
3
- export * from './code-frame-formatter';
4
- export * from './rspack-formatter';
5
- export * from './formatter-options';
6
- export * from './formatter-config';
1
+ export * from './formatter.js';
2
+ export * from './basic-formatter.js';
3
+ export * from './code-frame-formatter.js';
4
+ export * from './rspack-formatter.js';
5
+ export * from './formatter-options.js';
6
+ export * from './formatter-config.js';
@@ -1,3 +1,3 @@
1
- import type { Formatter, FormatterPathType } from './formatter';
1
+ import type { Formatter, FormatterPathType } from './formatter.js';
2
2
  declare function createRspackFormatter(formatter: Formatter, pathType: FormatterPathType): Formatter;
3
3
  export { createRspackFormatter };
@@ -1,3 +1,3 @@
1
1
  import type { Stats } from '@rspack/core';
2
- import type { Issue } from '../issue';
2
+ import type { Issue } from '../issue/index.js';
3
3
  export declare function statsFormatter(issues: Issue[], stats: Stats): string;
@@ -362,8 +362,8 @@ function passive_file_system_readFile(path, encoding) {
362
362
  const fsStats = realFileSystem.readStats(path);
363
363
  const memStats = memFileSystem.readStats(path);
364
364
  if (fsStats && memStats) return fsStats.mtimeMs > memStats.mtimeMs ? realFileSystem.readFile(path, encoding) : memFileSystem.readFile(path, encoding);
365
- if (fsStats) return realFileSystem.readFile(path, encoding);
366
- if (memStats) return memFileSystem.readFile(path, encoding);
365
+ else if (fsStats) return realFileSystem.readFile(path, encoding);
366
+ else if (memStats) return memFileSystem.readFile(path, encoding);
367
367
  }
368
368
  function passive_file_system_readDir(path) {
369
369
  const fsDirents = realFileSystem.readDir(path);
@@ -374,8 +374,8 @@ function passive_file_system_readStats(path) {
374
374
  const fsStats = realFileSystem.readStats(path);
375
375
  const memStats = memFileSystem.readStats(path);
376
376
  if (fsStats && memStats) return fsStats.mtimeMs > memStats.mtimeMs ? fsStats : memStats;
377
- if (fsStats) return fsStats;
378
- if (memStats) return memStats;
377
+ else if (fsStats) return fsStats;
378
+ else if (memStats) return memStats;
379
379
  }
380
380
  const mode = worker_config_config.mode;
381
381
  let artifacts = {
@@ -477,8 +477,8 @@ function passive_file_system_readFile(path, encoding) {
477
477
  const fsStats = realFileSystem.readStats(path);
478
478
  const memStats = memFileSystem.readStats(path);
479
479
  if (fsStats && memStats) return fsStats.mtimeMs > memStats.mtimeMs ? realFileSystem.readFile(path, encoding) : memFileSystem.readFile(path, encoding);
480
- if (fsStats) return realFileSystem.readFile(path, encoding);
481
- if (memStats) return memFileSystem.readFile(path, encoding);
480
+ else if (fsStats) return realFileSystem.readFile(path, encoding);
481
+ else if (memStats) return memFileSystem.readFile(path, encoding);
482
482
  }
483
483
  function passive_file_system_readDir(path) {
484
484
  const fsDirents = realFileSystem.readDir(path);
@@ -489,8 +489,8 @@ function passive_file_system_readStats(path) {
489
489
  const fsStats = realFileSystem.readStats(path);
490
490
  const memStats = memFileSystem.readStats(path);
491
491
  if (fsStats && memStats) return fsStats.mtimeMs > memStats.mtimeMs ? fsStats : memStats;
492
- if (fsStats) return fsStats;
493
- if (memStats) return memStats;
492
+ else if (fsStats) return fsStats;
493
+ else if (memStats) return memStats;
494
494
  }
495
495
  const mode = worker_config_config.mode;
496
496
  let artifacts = {
@@ -1,5 +1,5 @@
1
1
  import type * as rspack from '@rspack/core';
2
- import type { TsCheckerRspackPluginConfig } from '../plugin-config';
3
- import type { TsCheckerRspackPluginState } from '../plugin-state';
2
+ import type { TsCheckerRspackPluginConfig } from '../plugin-config.js';
3
+ import type { TsCheckerRspackPluginState } from '../plugin-state.js';
4
4
  declare function interceptDoneToGetDevServerTap(compiler: rspack.Compiler, config: TsCheckerRspackPluginConfig, state: TsCheckerRspackPluginState): void;
5
5
  export { interceptDoneToGetDevServerTap };
@@ -1,5 +1,5 @@
1
1
  import type * as rspack from '@rspack/core';
2
- import type { TsCheckerRspackPluginConfig } from '../plugin-config';
3
- import type { TsCheckerRspackPluginState } from '../plugin-state';
2
+ import type { TsCheckerRspackPluginConfig } from '../plugin-config.js';
3
+ import type { TsCheckerRspackPluginState } from '../plugin-state.js';
4
4
  declare function tapAfterCompileToAddDependencies(compiler: rspack.Compiler, config: TsCheckerRspackPluginConfig, state: TsCheckerRspackPluginState): void;
5
5
  export { tapAfterCompileToAddDependencies };
@@ -1,5 +1,5 @@
1
1
  import type * as rspack from '@rspack/core';
2
- import type { TsCheckerRspackPluginConfig } from '../plugin-config';
3
- import type { TsCheckerRspackPluginState } from '../plugin-state';
2
+ import type { TsCheckerRspackPluginConfig } from '../plugin-config.js';
3
+ import type { TsCheckerRspackPluginState } from '../plugin-state.js';
4
4
  declare function tapAfterCompileToGetIssues(compiler: rspack.Compiler, config: TsCheckerRspackPluginConfig, state: TsCheckerRspackPluginState): void;
5
5
  export { tapAfterCompileToGetIssues };
@@ -1,4 +1,4 @@
1
1
  import type * as rspack from '@rspack/core';
2
- import type { TsCheckerRspackPluginState } from '../plugin-state';
2
+ import type { TsCheckerRspackPluginState } from '../plugin-state.js';
3
3
  declare function tapAfterEnvironmentToPatchWatching(compiler: rspack.Compiler, state: TsCheckerRspackPluginState): void;
4
4
  export { tapAfterEnvironmentToPatchWatching };
@@ -1,5 +1,5 @@
1
1
  import type * as rspack from '@rspack/core';
2
- import type { TsCheckerRspackPluginConfig } from '../plugin-config';
3
- import type { TsCheckerRspackPluginState } from '../plugin-state';
2
+ import type { TsCheckerRspackPluginConfig } from '../plugin-config.js';
3
+ import type { TsCheckerRspackPluginState } from '../plugin-state.js';
4
4
  declare function tapDoneToAsyncGetIssues(compiler: rspack.Compiler, config: TsCheckerRspackPluginConfig, state: TsCheckerRspackPluginState): void;
5
5
  export { tapDoneToAsyncGetIssues };
@@ -1,4 +1,4 @@
1
1
  import type * as rspack from '@rspack/core';
2
- import type { TsCheckerRspackPluginConfig } from '../plugin-config';
2
+ import type { TsCheckerRspackPluginConfig } from '../plugin-config.js';
3
3
  declare function tapErrorToLogMessage(compiler: rspack.Compiler, config: TsCheckerRspackPluginConfig): void;
4
4
  export { tapErrorToLogMessage };
@@ -1,5 +1,5 @@
1
1
  import type * as rspack from '@rspack/core';
2
- import type { TsCheckerRspackPluginConfig } from '../plugin-config';
3
- import type { TsCheckerRspackPluginState } from '../plugin-state';
2
+ import type { TsCheckerRspackPluginConfig } from '../plugin-config.js';
3
+ import type { TsCheckerRspackPluginState } from '../plugin-state.js';
4
4
  declare function tapStartToRunTypeScriptGo(compiler: rspack.Compiler, config: TsCheckerRspackPluginConfig, state: TsCheckerRspackPluginState): void;
5
5
  export { tapStartToRunTypeScriptGo };
@@ -1,8 +1,8 @@
1
1
  import type * as rspack from '@rspack/core';
2
- import type { TsCheckerRspackPluginConfig } from '../plugin-config';
3
- import type { TsCheckerRspackPluginState } from '../plugin-state';
4
- import type { RpcWorker } from '../rpc';
5
- import type { GetDependenciesWorker } from '../typescript/worker/get-dependencies-worker';
6
- import type { GetIssuesWorker } from '../typescript/worker/get-issues-worker';
2
+ import type { TsCheckerRspackPluginConfig } from '../plugin-config.js';
3
+ import type { TsCheckerRspackPluginState } from '../plugin-state.js';
4
+ import type { RpcWorker } from '../rpc/index.js';
5
+ import type { GetDependenciesWorker } from '../typescript/worker/get-dependencies-worker.js';
6
+ import type { GetIssuesWorker } from '../typescript/worker/get-issues-worker.js';
7
7
  declare function tapStartToRunWorkers(compiler: rspack.Compiler, getIssuesWorker: RpcWorker<GetIssuesWorker>, getDependenciesWorker: RpcWorker<GetDependenciesWorker>, config: TsCheckerRspackPluginConfig, state: TsCheckerRspackPluginState): void;
8
8
  export { tapStartToRunWorkers };
@@ -1,5 +1,5 @@
1
1
  import type * as rspack from '@rspack/core';
2
- import type { TsCheckerRspackPluginState } from '../plugin-state';
3
- import type { RpcWorker } from '../rpc';
2
+ import type { TsCheckerRspackPluginState } from '../plugin-state.js';
3
+ import type { RpcWorker } from '../rpc/index.js';
4
4
  declare function tapStopToTerminateWorkers(compiler: rspack.Compiler, getIssuesWorker: RpcWorker, getDependenciesWorker: RpcWorker, state: TsCheckerRspackPluginState): void;
5
5
  export { tapStopToTerminateWorkers };
package/lib/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { TsCheckerRspackPlugin } from './plugin';
1
+ import { TsCheckerRspackPlugin } from './plugin.js';
2
2
  export { TsCheckerRspackPlugin };