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
package/lib/plugin-hooks.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { SyncHook, SyncWaterfallHook, AsyncSeriesWaterfallHook } from '@rspack/lite-tapable';
|
|
2
2
|
import type * as rspack from '@rspack/core';
|
|
3
|
-
import type { FilesChange } from './files-change';
|
|
4
|
-
import type { Issue } from './issue';
|
|
3
|
+
import type { FilesChange } from './files-change.js';
|
|
4
|
+
import type { Issue } from './issue/index.js';
|
|
5
5
|
declare function createPluginHooks(): {
|
|
6
|
-
start: AsyncSeriesWaterfallHook<[FilesChange, rspack.Compilation], {
|
|
6
|
+
start: AsyncSeriesWaterfallHook<[FilesChange, rspack.Compilation], FilesChange, {
|
|
7
7
|
_UnsetAdditionalOptions: true;
|
|
8
8
|
}>;
|
|
9
9
|
waiting: SyncHook<[rspack.Compilation], void, {
|
|
@@ -15,11 +15,13 @@ declare function createPluginHooks(): {
|
|
|
15
15
|
error: SyncHook<[unknown, rspack.Compilation], void, {
|
|
16
16
|
_UnsetAdditionalOptions: true;
|
|
17
17
|
}>;
|
|
18
|
-
issues: SyncWaterfallHook<[Issue[], rspack.Compilation | undefined],
|
|
18
|
+
issues: SyncWaterfallHook<[Issue[], rspack.Compilation | undefined], Issue[], {
|
|
19
|
+
_UnsetAdditionalOptions: true;
|
|
20
|
+
}>;
|
|
19
21
|
};
|
|
20
22
|
type TsCheckerRspackPluginHooks = ReturnType<typeof createPluginHooks>;
|
|
21
23
|
declare function getPluginHooks(compiler: rspack.Compiler | rspack.MultiCompiler): {
|
|
22
|
-
start: AsyncSeriesWaterfallHook<[FilesChange, rspack.Compilation], {
|
|
24
|
+
start: AsyncSeriesWaterfallHook<[FilesChange, rspack.Compilation], FilesChange, {
|
|
23
25
|
_UnsetAdditionalOptions: true;
|
|
24
26
|
}>;
|
|
25
27
|
waiting: SyncHook<[rspack.Compilation], void, {
|
|
@@ -31,7 +33,9 @@ declare function getPluginHooks(compiler: rspack.Compiler | rspack.MultiCompiler
|
|
|
31
33
|
error: SyncHook<[unknown, rspack.Compilation], void, {
|
|
32
34
|
_UnsetAdditionalOptions: true;
|
|
33
35
|
}>;
|
|
34
|
-
issues: SyncWaterfallHook<[Issue[], rspack.Compilation | undefined],
|
|
36
|
+
issues: SyncWaterfallHook<[Issue[], rspack.Compilation | undefined], Issue[], {
|
|
37
|
+
_UnsetAdditionalOptions: true;
|
|
38
|
+
}>;
|
|
35
39
|
};
|
|
36
40
|
export { getPluginHooks };
|
|
37
41
|
export type { TsCheckerRspackPluginHooks };
|
package/lib/plugin-options.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { FormatterOptions } from './formatter';
|
|
2
|
-
import type { IssueOptions } from './issue/issue-options';
|
|
3
|
-
import type { Logger } from './logger';
|
|
4
|
-
import type { TypeScriptWorkerOptions } from './typescript/type-script-worker-options';
|
|
1
|
+
import type { FormatterOptions } from './formatter/index.js';
|
|
2
|
+
import type { IssueOptions } from './issue/issue-options.js';
|
|
3
|
+
import type { Logger } from './logger.js';
|
|
4
|
+
import type { TypeScriptWorkerOptions } from './typescript/type-script-worker-options.js';
|
|
5
5
|
interface TsCheckerRspackPluginOptions {
|
|
6
6
|
async?: boolean;
|
|
7
7
|
typescript?: TypeScriptWorkerOptions;
|
package/lib/plugin-pools.d.ts
CHANGED
package/lib/plugin-state.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { FilesChange } from './files-change';
|
|
2
|
-
import type { FilesMatch } from './files-match';
|
|
3
|
-
import type { Issue } from './issue';
|
|
1
|
+
import type { FilesChange } from './files-change.js';
|
|
2
|
+
import type { FilesMatch } from './files-match.js';
|
|
3
|
+
import type { Issue } from './issue/index.js';
|
|
4
4
|
interface TsCheckerRspackPluginState {
|
|
5
5
|
issuesPromise: Promise<Issue[] | undefined>;
|
|
6
6
|
dependenciesPromise: Promise<FilesMatch | undefined>;
|
package/lib/plugin.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as rspack from '@rspack/core';
|
|
2
|
-
import type { TsCheckerRspackPluginOptions } from './plugin-options';
|
|
2
|
+
import type { TsCheckerRspackPluginOptions } from './plugin-options.js';
|
|
3
3
|
declare class TsCheckerRspackPlugin {
|
|
4
4
|
/**
|
|
5
5
|
* Current version of the plugin
|
|
@@ -8,16 +8,16 @@ declare class TsCheckerRspackPlugin {
|
|
|
8
8
|
/**
|
|
9
9
|
* Default pools for the plugin concurrency limit
|
|
10
10
|
*/
|
|
11
|
-
static readonly issuesPool: import("./utils/async/pool").Pool;
|
|
12
|
-
static readonly dependenciesPool: import("./utils/async/pool").Pool;
|
|
11
|
+
static readonly issuesPool: import("./utils/async/pool.js").Pool;
|
|
12
|
+
static readonly dependenciesPool: import("./utils/async/pool.js").Pool;
|
|
13
13
|
/**
|
|
14
14
|
* @deprecated Use TsCheckerRspackPlugin.issuesPool instead
|
|
15
15
|
*/
|
|
16
|
-
static readonly pool: import("./utils/async/pool").Pool;
|
|
16
|
+
static readonly pool: import("./utils/async/pool.js").Pool;
|
|
17
17
|
private readonly options;
|
|
18
18
|
constructor(options?: TsCheckerRspackPluginOptions);
|
|
19
19
|
static getCompilerHooks(compiler: rspack.Compiler): {
|
|
20
|
-
start: import("@rspack/lite-tapable", { with: { "resolution-mode": "import" } }).AsyncSeriesWaterfallHook<[import("./files-change").FilesChange, rspack.Compilation], {
|
|
20
|
+
start: import("@rspack/lite-tapable", { with: { "resolution-mode": "import" } }).AsyncSeriesWaterfallHook<[import("./files-change").FilesChange, rspack.Compilation], import("./files-change").FilesChange, {
|
|
21
21
|
_UnsetAdditionalOptions: true;
|
|
22
22
|
}>;
|
|
23
23
|
waiting: import("@rspack/lite-tapable", { with: { "resolution-mode": "import" } }).SyncHook<[rspack.Compilation], void, {
|
|
@@ -29,7 +29,9 @@ declare class TsCheckerRspackPlugin {
|
|
|
29
29
|
error: import("@rspack/lite-tapable", { with: { "resolution-mode": "import" } }).SyncHook<[unknown, rspack.Compilation], void, {
|
|
30
30
|
_UnsetAdditionalOptions: true;
|
|
31
31
|
}>;
|
|
32
|
-
issues: import("@rspack/lite-tapable", { with: { "resolution-mode": "import" } }).SyncWaterfallHook<[import("./issue").Issue[], rspack.Compilation | undefined],
|
|
32
|
+
issues: import("@rspack/lite-tapable", { with: { "resolution-mode": "import" } }).SyncWaterfallHook<[import("./issue/index.js").Issue[], rspack.Compilation | undefined], import("./issue").Issue[], {
|
|
33
|
+
_UnsetAdditionalOptions: true;
|
|
34
|
+
}>;
|
|
33
35
|
};
|
|
34
36
|
apply(compiler: rspack.Compiler): void;
|
|
35
37
|
}
|
package/lib/rpc/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { exposeRpc } from './expose-rpc';
|
|
2
|
-
export { wrapRpc } from './wrap-rpc';
|
|
3
|
-
export { createRpcWorker, getRpcWorkerData } from './rpc-worker';
|
|
4
|
-
export type { RpcWorker } from './rpc-worker';
|
|
5
|
-
export { RpcExitError } from './rpc-error';
|
|
6
|
-
export type { RpcRemoteMethod } from './types';
|
|
1
|
+
export { exposeRpc } from './expose-rpc.js';
|
|
2
|
+
export { wrapRpc } from './wrap-rpc.js';
|
|
3
|
+
export { createRpcWorker, getRpcWorkerData } from './rpc-worker.js';
|
|
4
|
+
export type { RpcWorker } from './rpc-worker.js';
|
|
5
|
+
export { RpcExitError } from './rpc-error.js';
|
|
6
|
+
export type { RpcRemoteMethod } from './types.js';
|
package/lib/rpc/rpc-worker.d.ts
CHANGED
package/lib/rpc/wrap-rpc.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ChildProcess } from 'node:child_process';
|
|
2
|
-
import type { RpcRemoteMethod } from './types';
|
|
2
|
+
import type { RpcRemoteMethod } from './types.js';
|
|
3
3
|
export declare function wrapRpc<T extends (...args: any[]) => any>(childProcess: ChildProcess): RpcRemoteMethod<T>;
|
|
@@ -11,5 +11,5 @@ type ResolvedTypeScriptGoPackage = {
|
|
|
11
11
|
declare function readTsgoPackageJson(packageJsonPath: string): TypeScriptGoPackageJson;
|
|
12
12
|
declare function getTsgoPackage(packageJson: TypeScriptGoPackageJson): TypeScriptGoPackage | undefined;
|
|
13
13
|
declare function resolveTypeScriptGoPackage(packageJsonPath: string): ResolvedTypeScriptGoPackage | undefined;
|
|
14
|
-
export { getTsgoPackage, readTsgoPackageJson, resolveTypeScriptGoPackage
|
|
15
|
-
export type { ResolvedTypeScriptGoPackage, TypeScriptGoPackage, TypeScriptGoPackageJson
|
|
14
|
+
export { getTsgoPackage, readTsgoPackageJson, resolveTypeScriptGoPackage };
|
|
15
|
+
export type { ResolvedTypeScriptGoPackage, TypeScriptGoPackage, TypeScriptGoPackageJson };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
1
|
+
import type { FilesChange } from '../files-change.js';
|
|
2
|
+
import type { FilesMatch } from '../files-match.js';
|
|
3
|
+
import type { Issue, IssueDefaultSeverity } from '../issue/index.js';
|
|
4
|
+
import type { Logger } from '../logger.js';
|
|
5
|
+
import type { TypeScriptWorkerConfig } from './type-script-worker-config.js';
|
|
4
6
|
type TypeScriptGoExecutable = {
|
|
5
7
|
command: string;
|
|
6
8
|
args: string[];
|
|
@@ -8,6 +10,8 @@ type TypeScriptGoExecutable = {
|
|
|
8
10
|
declare function resolveTypeScriptGoPackageJsonPath(config: TypeScriptWorkerConfig): string;
|
|
9
11
|
declare function resolveTypeScriptGoBinPath(config: TypeScriptWorkerConfig): Promise<string>;
|
|
10
12
|
declare function resolveTypeScriptGoExecutable(config: TypeScriptWorkerConfig): Promise<TypeScriptGoExecutable>;
|
|
13
|
+
declare function toComparisonPath(file: string): string;
|
|
14
|
+
declare function shouldRefreshTypeScriptGoDependencies(dependencies: FilesMatch | undefined, { changedFiles, deletedFiles }: FilesChange): boolean;
|
|
11
15
|
declare function createTypeScriptGoArgs(config: TypeScriptWorkerConfig): string[];
|
|
12
16
|
declare function getTypeScriptGoErrorCount(output: string): number | undefined;
|
|
13
17
|
declare function parseTypeScriptGoIssues(output: string, config: TypeScriptWorkerConfig, defaultSeverity?: IssueDefaultSeverity): Issue[];
|
|
@@ -15,10 +19,5 @@ declare function createTypeScriptGoExitIssues(output: string, signal: NodeJS.Sig
|
|
|
15
19
|
declare function isTypeScriptGoIssue(issue: Issue): boolean;
|
|
16
20
|
declare function isTypeScriptGoStatsError(error: unknown): boolean;
|
|
17
21
|
declare function runTypeScriptGo(config: TypeScriptWorkerConfig, logger: Pick<Logger, 'error'>, defaultSeverity?: IssueDefaultSeverity, signal?: AbortSignal): Promise<Issue[]>;
|
|
18
|
-
declare function getTypeScriptGoDependencies(config: TypeScriptWorkerConfig):
|
|
19
|
-
|
|
20
|
-
dirs: string[];
|
|
21
|
-
excluded: string[];
|
|
22
|
-
extensions: string[];
|
|
23
|
-
};
|
|
24
|
-
export { createTypeScriptGoArgs, createTypeScriptGoExitIssues, getTypeScriptGoDependencies, getTypeScriptGoErrorCount, isTypeScriptGoIssue, isTypeScriptGoStatsError, parseTypeScriptGoIssues, resolveTypeScriptGoExecutable, resolveTypeScriptGoBinPath, resolveTypeScriptGoPackageJsonPath, runTypeScriptGo, };
|
|
22
|
+
declare function getTypeScriptGoDependencies(config: TypeScriptWorkerConfig): Promise<FilesMatch>;
|
|
23
|
+
export { createTypeScriptGoArgs, createTypeScriptGoExitIssues, getTypeScriptGoDependencies, getTypeScriptGoErrorCount, isTypeScriptGoIssue, isTypeScriptGoStatsError, parseTypeScriptGoIssues, resolveTypeScriptGoExecutable, resolveTypeScriptGoBinPath, resolveTypeScriptGoPackageJsonPath, runTypeScriptGo, shouldRefreshTypeScriptGoDependencies, toComparisonPath, };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TypeScriptWorkerConfig } from './type-script-worker-config';
|
|
1
|
+
import type { TypeScriptWorkerConfig } from './type-script-worker-config.js';
|
|
2
2
|
declare function assertTypeScriptGoExecutable(config: TypeScriptWorkerConfig): Promise<void>;
|
|
3
3
|
declare function assertTypeScriptSupport(config: TypeScriptWorkerConfig): void;
|
|
4
4
|
export { assertTypeScriptGoExecutable, assertTypeScriptSupport };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type * as rspack from '@rspack/core';
|
|
2
|
-
import type { TypeScriptConfigOverwrite } from './type-script-config-overwrite';
|
|
3
|
-
import type { TypeScriptDiagnosticsOptions } from './type-script-diagnostics-options';
|
|
4
|
-
import { type TypeScriptGoPackage } from './type-script-go-package';
|
|
5
|
-
import type { TypeScriptWorkerOptions } from './type-script-worker-options';
|
|
2
|
+
import type { TypeScriptConfigOverwrite } from './type-script-config-overwrite.js';
|
|
3
|
+
import type { TypeScriptDiagnosticsOptions } from './type-script-diagnostics-options.js';
|
|
4
|
+
import { type TypeScriptGoPackage } from './type-script-go-package.js';
|
|
5
|
+
import type { TypeScriptWorkerOptions } from './type-script-worker-options.js';
|
|
6
6
|
interface TypeScriptWorkerConfig {
|
|
7
7
|
enabled: boolean;
|
|
8
8
|
memoryLimit: number;
|
|
@@ -19,5 +19,5 @@ interface TypeScriptWorkerConfig {
|
|
|
19
19
|
tsgoPackage?: TypeScriptGoPackage;
|
|
20
20
|
}
|
|
21
21
|
declare function createTypeScriptWorkerConfig(compiler: rspack.Compiler, options: TypeScriptWorkerOptions | undefined): TypeScriptWorkerConfig;
|
|
22
|
-
export { createTypeScriptWorkerConfig
|
|
22
|
+
export { createTypeScriptWorkerConfig };
|
|
23
23
|
export type { TypeScriptWorkerConfig };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { TypeScriptConfigOverwrite } from './type-script-config-overwrite';
|
|
2
|
-
import type { TypeScriptDiagnosticsOptions } from './type-script-diagnostics-options';
|
|
1
|
+
import type { TypeScriptConfigOverwrite } from './type-script-config-overwrite.js';
|
|
2
|
+
import type { TypeScriptDiagnosticsOptions } from './type-script-diagnostics-options.js';
|
|
3
3
|
type TypeScriptWorkerOptions = {
|
|
4
4
|
memoryLimit?: number;
|
|
5
5
|
configFile?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { FilesChange } from '../../files-change';
|
|
2
|
-
import type { FilesMatch } from '../../files-match';
|
|
1
|
+
import type { FilesChange } from '../../files-change.js';
|
|
2
|
+
import type { FilesMatch } from '../../files-match.js';
|
|
3
3
|
declare const getDependenciesWorker: (change: FilesChange) => FilesMatch;
|
|
4
4
|
export type GetDependenciesWorker = typeof getDependenciesWorker;
|
|
5
5
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { FilesChange } from '../../files-change';
|
|
2
|
-
import type { FilesMatch } from '../../files-match';
|
|
3
|
-
import type { Issue, IssueDefaultSeverity } from '../../issue';
|
|
1
|
+
import type { FilesChange } from '../../files-change.js';
|
|
2
|
+
import type { FilesMatch } from '../../files-match.js';
|
|
3
|
+
import type { Issue, IssueDefaultSeverity } from '../../issue/index.js';
|
|
4
4
|
interface GetIssuesWorkerResult {
|
|
5
5
|
issues: Issue[];
|
|
6
6
|
dependencies?: FilesMatch;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FilesMatch } from '../../../files-match';
|
|
1
|
+
import type { FilesMatch } from '../../../files-match.js';
|
|
2
2
|
export declare function getArtifacts(force?: boolean): FilesMatch;
|
|
3
3
|
export declare function invalidateArtifacts(): void;
|
|
4
4
|
export declare function registerArtifacts(): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type * as ts from 'typescript';
|
|
2
|
-
import type { FilesChange } from '../../../files-change';
|
|
3
|
-
import type { FilesMatch } from '../../../files-match';
|
|
4
|
-
import type { Issue, IssueDefaultSeverity } from '../../../issue';
|
|
2
|
+
import type { FilesChange } from '../../../files-change.js';
|
|
3
|
+
import type { FilesMatch } from '../../../files-match.js';
|
|
4
|
+
import type { Issue, IssueDefaultSeverity } from '../../../issue/index.js';
|
|
5
5
|
export declare function parseConfig(configFileName: string, configFileContext: string): ts.ParsedCommandLine;
|
|
6
6
|
export declare function getParseConfigIssues(defaultSeverity: IssueDefaultSeverity): Issue[];
|
|
7
7
|
export declare function getParsedConfig(force?: boolean): ts.ParsedCommandLine;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as ts from 'typescript';
|
|
2
|
-
import type { Issue, IssueDefaultSeverity } from '../../../issue';
|
|
2
|
+
import type { Issue, IssueDefaultSeverity } from '../../../issue/index.js';
|
|
3
3
|
export declare function updateDiagnostics(configFile: string, diagnostics: ts.Diagnostic[]): void;
|
|
4
4
|
export declare function getIssues(defaultSeverity: IssueDefaultSeverity): Issue[];
|
|
5
5
|
export declare function invalidateDiagnostics(): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as ts from 'typescript';
|
|
2
|
-
import type { FilesMatch } from '../../../files-match';
|
|
2
|
+
import type { FilesMatch } from '../../../files-match.js';
|
|
3
3
|
export interface ControlledTypeScriptSystem extends ts.System {
|
|
4
4
|
invokeFileCreated(path: string): void;
|
|
5
5
|
invokeFileChanged(path: string): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { TypeScriptWorkerConfig } from '../../type-script-worker-config';
|
|
1
|
+
import type { TypeScriptWorkerConfig } from '../../type-script-worker-config.js';
|
|
2
2
|
export declare const config: TypeScriptWorkerConfig;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { Compiler } from '@rspack/core';
|
|
2
|
-
import type { TsCheckerRspackPluginState } from '../plugin-state';
|
|
3
|
-
import type { WatchFileSystem } from './watch-file-system';
|
|
4
|
-
export declare function createIsIgnored(ignored: string | RegExp | (string | RegExp)[] | undefined, excluded: string[]): (path: string) => boolean;
|
|
2
|
+
import type { TsCheckerRspackPluginState } from '../plugin-state.js';
|
|
3
|
+
import type { WatchFileSystem } from './watch-file-system.js';
|
|
4
|
+
export declare function createIsIgnored(ignored: string | RegExp | (string | RegExp)[] | ((entry: string) => boolean) | undefined, excluded: string[]): (path: string) => boolean;
|
|
5
5
|
declare class InclusiveNodeWatchFileSystem implements WatchFileSystem {
|
|
6
6
|
private watchFileSystem;
|
|
7
7
|
private compiler;
|
|
8
8
|
private pluginState;
|
|
9
|
-
get watcher(): import("./watch-file-system").Watchpack | undefined;
|
|
9
|
+
get watcher(): import("./watch-file-system.js").Watchpack | undefined;
|
|
10
10
|
private readonly dirsWatchers;
|
|
11
11
|
private paused;
|
|
12
12
|
private deletedFiles;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ts-checker-rspack-plugin",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.2",
|
|
4
4
|
"description": "Runs typescript type checker and linter on separate process.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"rspack",
|
|
@@ -23,27 +23,23 @@
|
|
|
23
23
|
"lib"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@rspack/lite-tapable": "^1.
|
|
26
|
+
"@rspack/lite-tapable": "^1.3.0",
|
|
27
27
|
"chokidar": "^3.6.0",
|
|
28
|
-
"memfs": "^4.
|
|
28
|
+
"memfs": "^4.79.0",
|
|
29
29
|
"picocolors": "^1.1.1"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@babel/code-frame": "^7.29.7",
|
|
33
|
-
"@
|
|
34
|
-
"@rslint/core": "^0.7.0",
|
|
35
|
-
"@rspack/core": "^2.1.4",
|
|
33
|
+
"@rspack/core": "^2.2.8",
|
|
36
34
|
"@rstackjs/test-utils": "^0.2.0",
|
|
37
|
-
"@rstest/core": "^0.11.2",
|
|
38
35
|
"@types/babel__code-frame": "^7.27.0",
|
|
39
36
|
"@types/is-glob": "^4.0.4",
|
|
40
|
-
"@types/node": "^24.
|
|
37
|
+
"@types/node": "^24.19.0",
|
|
41
38
|
"@typescript/native-preview": "7.0.0-dev.20260707.2",
|
|
42
39
|
"cross-env": "^10.1.0",
|
|
43
|
-
"husky": "^9.1.7",
|
|
44
40
|
"is-glob": "^4.0.3",
|
|
45
|
-
"minimatch": "^10.2.
|
|
46
|
-
"
|
|
41
|
+
"minimatch": "^10.2.6",
|
|
42
|
+
"rstack": "^0.8.0",
|
|
47
43
|
"strip-ansi": "^7.2.0",
|
|
48
44
|
"typescript": "^6.0.3"
|
|
49
45
|
},
|
|
@@ -65,15 +61,17 @@
|
|
|
65
61
|
"registry": "https://registry.npmjs.org/"
|
|
66
62
|
},
|
|
67
63
|
"scripts": {
|
|
68
|
-
"build": "
|
|
69
|
-
"bump": "
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
64
|
+
"build": "rs lib",
|
|
65
|
+
"bump": "pnpm version -m \"release: v%s\"",
|
|
66
|
+
"check": "rs check",
|
|
67
|
+
"dev": "rs lib -w",
|
|
68
|
+
"format": "rs fmt",
|
|
69
|
+
"lint": "rs lint",
|
|
70
|
+
"lint:write": "rs lint --fix",
|
|
73
71
|
"precommit": "pnpm build && pnpm test:unit",
|
|
74
|
-
"test": "pnpm build &&
|
|
75
|
-
"test:e2e": "
|
|
72
|
+
"test": "pnpm build && rs test",
|
|
73
|
+
"test:e2e": "rs test --project e2e",
|
|
76
74
|
"test:e2e:setup": "cd test/e2e && pnpm run setup",
|
|
77
|
-
"test:unit": "
|
|
75
|
+
"test:unit": "rs test --project unit"
|
|
78
76
|
}
|
|
79
77
|
}
|