ts-checker-rspack-plugin 1.2.6 → 1.3.1
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/README.md +15 -0
- package/lib/files-change.d.ts +2 -1
- package/lib/files-match.d.ts +1 -1
- package/lib/formatter/code-frame-formatter.d.ts +3 -2
- package/lib/formatter/formatter-config.d.ts +2 -1
- package/lib/formatter/formatter-options.d.ts +1 -1
- package/lib/formatter/formatter.d.ts +1 -1
- package/lib/getDependenciesWorker.js +2 -2
- package/lib/getIssuesWorker.js +3 -3
- package/lib/index.js +4039 -904
- package/lib/index.js.LICENSE.txt +13 -0
- package/lib/issue/issue-config.d.ts +2 -1
- package/lib/issue/issue-location.d.ts +2 -1
- package/lib/issue/issue-match.d.ts +2 -1
- package/lib/issue/issue-options.d.ts +1 -1
- package/lib/issue/issue-position.d.ts +2 -1
- package/lib/issue/issue-predicate.d.ts +2 -1
- package/lib/issue/issue.d.ts +2 -1
- package/lib/logger.d.ts +1 -1
- package/lib/plugin-config.d.ts +2 -1
- package/lib/plugin-hooks.d.ts +2 -1
- package/lib/plugin-options.d.ts +1 -1
- package/lib/plugin-state.d.ts +2 -1
- package/lib/plugin.d.ts +5 -5
- package/lib/rpc/index.d.ts +3 -2
- package/lib/rpc/rpc-worker.d.ts +2 -1
- package/lib/rpc/types.d.ts +1 -1
- package/lib/typescript/type-script-config-overwrite.d.ts +1 -1
- package/lib/typescript/type-script-diagnostics-options.d.ts +1 -1
- package/lib/typescript/type-script-worker-config.d.ts +2 -1
- package/lib/typescript/type-script-worker-options.d.ts +1 -1
- package/lib/utils/async/pool.d.ts +2 -1
- package/lib/watch/watch-file-system.d.ts +1 -1
- package/package.json +36 -36
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* is-extglob <https://github.com/jonschlinkert/is-extglob>
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2014-2016, Jon Schlinkert.
|
|
5
|
+
* Licensed under the MIT License.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/*!
|
|
9
|
+
* is-glob <https://github.com/jonschlinkert/is-glob>
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
12
|
+
* Released under the MIT License.
|
|
13
|
+
*/
|
|
@@ -7,4 +7,5 @@ interface IssueConfig {
|
|
|
7
7
|
defaultSeverity: IssueDefaultSeverity;
|
|
8
8
|
}
|
|
9
9
|
declare function createIssueConfig(compiler: rspack.Compiler, options: IssueOptions | undefined): IssueConfig;
|
|
10
|
-
export {
|
|
10
|
+
export { createIssueConfig };
|
|
11
|
+
export type { IssueConfig };
|
|
@@ -5,4 +5,5 @@ interface IssueLocation {
|
|
|
5
5
|
}
|
|
6
6
|
declare function compareIssueLocations(locationA?: IssueLocation, locationB?: IssueLocation): number;
|
|
7
7
|
declare function formatIssueLocation(location: IssueLocation): string;
|
|
8
|
-
export {
|
|
8
|
+
export { compareIssueLocations, formatIssueLocation };
|
|
9
|
+
export type { IssueLocation };
|
|
@@ -2,4 +2,5 @@ import type { IssuePredicate } from './issue-predicate';
|
|
|
2
2
|
import type { Issue } from './index';
|
|
3
3
|
type IssueMatch = Partial<Pick<Issue, 'severity' | 'code' | 'file'>>;
|
|
4
4
|
declare function createIssuePredicateFromIssueMatch(context: string, match: IssueMatch): IssuePredicate;
|
|
5
|
-
export {
|
|
5
|
+
export { createIssuePredicateFromIssueMatch };
|
|
6
|
+
export type { IssueMatch };
|
|
@@ -2,4 +2,5 @@ import type { Issue } from './index';
|
|
|
2
2
|
type IssuePredicate = (issue: Issue) => boolean;
|
|
3
3
|
declare function createTrivialIssuePredicate(result: boolean): IssuePredicate;
|
|
4
4
|
declare function composeIssuePredicates(predicates: IssuePredicate[]): IssuePredicate;
|
|
5
|
-
export {
|
|
5
|
+
export { createTrivialIssuePredicate, composeIssuePredicates };
|
|
6
|
+
export type { IssuePredicate };
|
package/lib/issue/issue.d.ts
CHANGED
|
@@ -9,4 +9,5 @@ interface Issue {
|
|
|
9
9
|
}
|
|
10
10
|
declare function isIssue(value: unknown): value is Issue;
|
|
11
11
|
declare function deduplicateAndSortIssues(issues: Issue[]): Issue[];
|
|
12
|
-
export {
|
|
12
|
+
export { isIssue, deduplicateAndSortIssues };
|
|
13
|
+
export type { Issue };
|
package/lib/logger.d.ts
CHANGED
package/lib/plugin-config.d.ts
CHANGED
|
@@ -13,4 +13,5 @@ interface TsCheckerRspackPluginConfig {
|
|
|
13
13
|
devServer: boolean;
|
|
14
14
|
}
|
|
15
15
|
declare function createPluginConfig(compiler: rspack.Compiler, options?: TsCheckerRspackPluginOptions): TsCheckerRspackPluginConfig;
|
|
16
|
-
export {
|
|
16
|
+
export { createPluginConfig };
|
|
17
|
+
export type { TsCheckerRspackPluginConfig };
|
package/lib/plugin-hooks.d.ts
CHANGED
|
@@ -33,4 +33,5 @@ declare function getPluginHooks(compiler: rspack.Compiler | rspack.MultiCompiler
|
|
|
33
33
|
}>;
|
|
34
34
|
issues: SyncWaterfallHook<[Issue[], rspack.Compilation | undefined], void>;
|
|
35
35
|
};
|
|
36
|
-
export { getPluginHooks
|
|
36
|
+
export { getPluginHooks };
|
|
37
|
+
export type { TsCheckerRspackPluginHooks };
|
package/lib/plugin-options.d.ts
CHANGED
package/lib/plugin-state.d.ts
CHANGED
|
@@ -13,4 +13,5 @@ interface TsCheckerRspackPluginState {
|
|
|
13
13
|
DevServerDoneTap: any | undefined;
|
|
14
14
|
}
|
|
15
15
|
declare function createPluginState(): TsCheckerRspackPluginState;
|
|
16
|
-
export {
|
|
16
|
+
export { createPluginState };
|
|
17
|
+
export type { TsCheckerRspackPluginState };
|
package/lib/plugin.d.ts
CHANGED
|
@@ -17,19 +17,19 @@ declare class TsCheckerRspackPlugin {
|
|
|
17
17
|
private readonly options;
|
|
18
18
|
constructor(options?: TsCheckerRspackPluginOptions);
|
|
19
19
|
static getCompilerHooks(compiler: rspack.Compiler): {
|
|
20
|
-
start: import("@rspack/lite-tapable").AsyncSeriesWaterfallHook<[import("./files-change").FilesChange, rspack.Compilation], {
|
|
20
|
+
start: import("@rspack/lite-tapable", { with: { "resolution-mode": "import" } }).AsyncSeriesWaterfallHook<[import("./files-change").FilesChange, rspack.Compilation], {
|
|
21
21
|
_UnsetAdditionalOptions: true;
|
|
22
22
|
}>;
|
|
23
|
-
waiting: import("@rspack/lite-tapable").SyncHook<[rspack.Compilation], void, {
|
|
23
|
+
waiting: import("@rspack/lite-tapable", { with: { "resolution-mode": "import" } }).SyncHook<[rspack.Compilation], void, {
|
|
24
24
|
_UnsetAdditionalOptions: true;
|
|
25
25
|
}>;
|
|
26
|
-
canceled: import("@rspack/lite-tapable").SyncHook<[rspack.Compilation], void, {
|
|
26
|
+
canceled: import("@rspack/lite-tapable", { with: { "resolution-mode": "import" } }).SyncHook<[rspack.Compilation], void, {
|
|
27
27
|
_UnsetAdditionalOptions: true;
|
|
28
28
|
}>;
|
|
29
|
-
error: import("@rspack/lite-tapable").SyncHook<[unknown, rspack.Compilation], void, {
|
|
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").SyncWaterfallHook<[import("./issue").Issue[], rspack.Compilation | undefined], void>;
|
|
32
|
+
issues: import("@rspack/lite-tapable", { with: { "resolution-mode": "import" } }).SyncWaterfallHook<[import("./issue").Issue[], rspack.Compilation | undefined], void>;
|
|
33
33
|
};
|
|
34
34
|
apply(compiler: rspack.Compiler): void;
|
|
35
35
|
}
|
package/lib/rpc/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { exposeRpc } from './expose-rpc';
|
|
2
2
|
export { wrapRpc } from './wrap-rpc';
|
|
3
|
-
export { createRpcWorker, getRpcWorkerData
|
|
3
|
+
export { createRpcWorker, getRpcWorkerData } from './rpc-worker';
|
|
4
|
+
export type { RpcWorker } from './rpc-worker';
|
|
4
5
|
export { RpcExitError } from './rpc-error';
|
|
5
|
-
export { RpcRemoteMethod } from './types';
|
|
6
|
+
export type { RpcRemoteMethod } from './types';
|
package/lib/rpc/rpc-worker.d.ts
CHANGED
|
@@ -9,4 +9,5 @@ interface RpcWorkerBase {
|
|
|
9
9
|
type RpcWorker<T extends RpcMethod = RpcMethod> = RpcWorkerBase & RpcRemoteMethod<T>;
|
|
10
10
|
declare function createRpcWorker<T extends RpcMethod>(modulePath: string, data: unknown, memoryLimit?: number): RpcWorker<T>;
|
|
11
11
|
declare function getRpcWorkerData(): unknown;
|
|
12
|
-
export { createRpcWorker, getRpcWorkerData
|
|
12
|
+
export { createRpcWorker, getRpcWorkerData };
|
|
13
|
+
export type { RpcWorker };
|
package/lib/rpc/types.d.ts
CHANGED
|
@@ -16,4 +16,4 @@ interface RpcRejectMessage {
|
|
|
16
16
|
type RpcMessage = RpcCallMessage | RpcResolveMessage | RpcRejectMessage;
|
|
17
17
|
type RpcMethod = (...args: any[]) => any;
|
|
18
18
|
type RpcRemoteMethod<T extends RpcMethod> = T extends (...args: infer A) => infer R ? R extends Promise<any> ? (...args: A) => R : (...args: A) => Promise<R> : (...args: unknown[]) => Promise<unknown>;
|
|
19
|
-
export { RpcCallMessage, RpcResolveMessage, RpcRejectMessage, RpcMessage, RpcMethod, RpcRemoteMethod, };
|
|
19
|
+
export type { RpcCallMessage, RpcResolveMessage, RpcRejectMessage, RpcMessage, RpcMethod, RpcRemoteMethod, };
|
|
@@ -15,4 +15,5 @@ interface TypeScriptWorkerConfig {
|
|
|
15
15
|
typescriptPath: string;
|
|
16
16
|
}
|
|
17
17
|
declare function createTypeScriptWorkerConfig(compiler: rspack.Compiler, options: TypeScriptWorkerOptions | undefined): TypeScriptWorkerConfig;
|
|
18
|
-
export { createTypeScriptWorkerConfig
|
|
18
|
+
export { createTypeScriptWorkerConfig };
|
|
19
|
+
export type { TypeScriptWorkerConfig };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ts-checker-rspack-plugin",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "Runs typescript type checker and linter on separate process.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"rspack",
|
|
@@ -16,32 +16,36 @@
|
|
|
16
16
|
"url": "https://github.com/rstackjs/ts-checker-rspack-plugin.git"
|
|
17
17
|
},
|
|
18
18
|
"license": "MIT",
|
|
19
|
+
"main": "lib/index.js",
|
|
20
|
+
"types": "lib/index.d.ts",
|
|
19
21
|
"files": [
|
|
20
22
|
"lib"
|
|
21
23
|
],
|
|
22
|
-
"main": "lib/index.js",
|
|
23
|
-
"types": "lib/index.d.ts",
|
|
24
|
-
"scripts": {
|
|
25
|
-
"build": "rslib build",
|
|
26
|
-
"dev": "rslib build -w",
|
|
27
|
-
"lint": "echo lint",
|
|
28
|
-
"test": "pnpm build && pnpm test:unit && pnpm test:e2e",
|
|
29
|
-
"test:unit": "rstest --config=test/unit/rstest.config.ts",
|
|
30
|
-
"test:e2e": "cd test/e2e && pnpm test",
|
|
31
|
-
"test:e2e:setup": "cd test/e2e && pnpm run setup",
|
|
32
|
-
"precommit": "pnpm build && pnpm test:unit",
|
|
33
|
-
"prepare": "husky && pnpm build",
|
|
34
|
-
"bump": "npx bumpp"
|
|
35
|
-
},
|
|
36
24
|
"dependencies": {
|
|
37
|
-
"@babel/code-frame": "^7.27.1",
|
|
38
25
|
"@rspack/lite-tapable": "^1.1.0",
|
|
39
26
|
"chokidar": "^3.6.0",
|
|
40
|
-
"
|
|
41
|
-
"memfs": "^4.51.1",
|
|
42
|
-
"minimatch": "^9.0.5",
|
|
27
|
+
"memfs": "^4.57.2",
|
|
43
28
|
"picocolors": "^1.1.1"
|
|
44
29
|
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@babel/code-frame": "^7.29.0",
|
|
32
|
+
"@rslib/core": "^0.21.5",
|
|
33
|
+
"@rslint/core": "^0.5.3",
|
|
34
|
+
"@rspack/core": "^2.0.4",
|
|
35
|
+
"@rstest/core": "^0.10.2",
|
|
36
|
+
"@types/babel__code-frame": "^7.27.0",
|
|
37
|
+
"@types/is-glob": "^4.0.4",
|
|
38
|
+
"@types/mock-fs": "^4.13.4",
|
|
39
|
+
"@types/node": "^24.12.4",
|
|
40
|
+
"cross-env": "^10.1.0",
|
|
41
|
+
"husky": "^9.1.7",
|
|
42
|
+
"is-glob": "^4.0.3",
|
|
43
|
+
"minimatch": "^10.2.5",
|
|
44
|
+
"mock-fs": "^5.5.0",
|
|
45
|
+
"prettier": "^3.8.3",
|
|
46
|
+
"strip-ansi": "^7.2.0",
|
|
47
|
+
"typescript": "^6.0.3"
|
|
48
|
+
},
|
|
45
49
|
"peerDependencies": {
|
|
46
50
|
"@rspack/core": "^1.0.0 || ^2.0.0-0",
|
|
47
51
|
"typescript": ">=3.8.0"
|
|
@@ -51,24 +55,20 @@
|
|
|
51
55
|
"optional": true
|
|
52
56
|
}
|
|
53
57
|
},
|
|
54
|
-
"devDependencies": {
|
|
55
|
-
"@rslib/core": "^0.18.2",
|
|
56
|
-
"@rspack/core": "^1.6.5",
|
|
57
|
-
"@rstest/core": "^0.7.5",
|
|
58
|
-
"@types/babel__code-frame": "^7.0.6",
|
|
59
|
-
"@types/is-glob": "^4.0.4",
|
|
60
|
-
"@types/mock-fs": "^4.13.4",
|
|
61
|
-
"@types/node": "^16.18.126",
|
|
62
|
-
"cross-env": "^10.1.0",
|
|
63
|
-
"husky": "^9.1.7",
|
|
64
|
-
"mock-fs": "^5.5.0",
|
|
65
|
-
"prettier": "^3.7.3",
|
|
66
|
-
"strip-ansi": "^6.0.1",
|
|
67
|
-
"typescript": "^5.9.3"
|
|
68
|
-
},
|
|
69
58
|
"publishConfig": {
|
|
70
59
|
"access": "public",
|
|
71
60
|
"registry": "https://registry.npmjs.org/"
|
|
72
61
|
},
|
|
73
|
-
"
|
|
74
|
-
|
|
62
|
+
"scripts": {
|
|
63
|
+
"build": "rslib",
|
|
64
|
+
"bump": "npx bumpp",
|
|
65
|
+
"dev": "rslib -w",
|
|
66
|
+
"lint": "rslint",
|
|
67
|
+
"lint:write": "rslint --fix",
|
|
68
|
+
"precommit": "pnpm build && pnpm test:unit",
|
|
69
|
+
"test": "pnpm build && pnpm test:unit && pnpm test:e2e",
|
|
70
|
+
"test:e2e": "cd test/e2e && pnpm test",
|
|
71
|
+
"test:e2e:setup": "cd test/e2e && pnpm run setup",
|
|
72
|
+
"test:unit": "rstest --config=test/unit/rstest.config.ts"
|
|
73
|
+
}
|
|
74
|
+
}
|