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.
- package/lib/formatter/basic-formatter.d.ts +1 -1
- package/lib/formatter/code-frame-formatter.d.ts +2 -2
- package/lib/formatter/formatter-config.d.ts +2 -2
- package/lib/formatter/formatter-options.d.ts +3 -3
- package/lib/formatter/formatter.d.ts +1 -1
- package/lib/formatter/index.d.ts +6 -6
- package/lib/formatter/rspack-formatter.d.ts +1 -1
- package/lib/formatter/stats-formatter.d.ts +1 -1
- package/lib/getDependenciesWorker.js +4 -4
- package/lib/getIssuesWorker.js +4 -4
- package/lib/hooks/intercept-done-to-get-dev-server-tap.d.ts +2 -2
- package/lib/hooks/tap-after-compile-to-add-dependencies.d.ts +2 -2
- package/lib/hooks/tap-after-compile-to-get-issues.d.ts +2 -2
- package/lib/hooks/tap-after-environment-to-patch-watching.d.ts +1 -1
- package/lib/hooks/tap-done-to-async-get-issues.d.ts +2 -2
- package/lib/hooks/tap-error-to-log-message.d.ts +1 -1
- package/lib/hooks/tap-start-to-run-type-script-go.d.ts +2 -2
- package/lib/hooks/tap-start-to-run-workers.d.ts +5 -5
- package/lib/hooks/tap-stop-to-terminate-workers.d.ts +2 -2
- package/lib/index.d.ts +1 -1
- package/lib/index.js +248 -102
- package/lib/issue/index.d.ts +3 -3
- package/lib/issue/issue-config.d.ts +3 -3
- package/lib/issue/issue-location.d.ts +1 -1
- package/lib/issue/issue-match.d.ts +2 -2
- package/lib/issue/issue-options.d.ts +3 -3
- package/lib/issue/issue-predicate.d.ts +1 -1
- package/lib/issue/issue-rspack-error.d.ts +2 -2
- package/lib/issue/issue.d.ts +2 -2
- package/lib/plugin-config.d.ts +5 -5
- package/lib/plugin-hooks.d.ts +10 -6
- package/lib/plugin-options.d.ts +4 -4
- package/lib/plugin-pools.d.ts +1 -1
- package/lib/plugin-state.d.ts +3 -3
- package/lib/plugin.d.ts +8 -6
- package/lib/rpc/index.d.ts +6 -6
- package/lib/rpc/rpc-worker.d.ts +1 -1
- package/lib/rpc/wrap-rpc.d.ts +1 -1
- package/lib/typescript/type-script-go-package.d.ts +2 -2
- package/lib/typescript/type-script-go-runner.d.ts +9 -10
- package/lib/typescript/type-script-support.d.ts +1 -1
- package/lib/typescript/type-script-worker-config.d.ts +5 -5
- package/lib/typescript/type-script-worker-options.d.ts +2 -2
- package/lib/typescript/worker/get-dependencies-worker.d.ts +2 -2
- package/lib/typescript/worker/get-issues-worker.d.ts +3 -3
- package/lib/typescript/worker/lib/artifacts.d.ts +1 -1
- package/lib/typescript/worker/lib/config.d.ts +3 -3
- package/lib/typescript/worker/lib/dependencies.d.ts +1 -1
- package/lib/typescript/worker/lib/diagnostics.d.ts +1 -1
- package/lib/typescript/worker/lib/file-system/mem-file-system.d.ts +1 -1
- package/lib/typescript/worker/lib/file-system/passive-file-system.d.ts +1 -1
- package/lib/typescript/worker/lib/file-system/real-file-system.d.ts +1 -1
- package/lib/typescript/worker/lib/system.d.ts +1 -1
- package/lib/typescript/worker/lib/worker-config.d.ts +1 -1
- package/lib/watch/inclusive-node-watch-file-system.d.ts +4 -4
- package/package.json +17 -19
|
@@ -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 };
|
package/lib/formatter/index.d.ts
CHANGED
|
@@ -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 };
|
|
@@ -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 = {
|
package/lib/getIssuesWorker.js
CHANGED
|
@@ -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 };
|