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.
@@ -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 { IssueConfig, createIssueConfig };
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 { IssueLocation, compareIssueLocations, formatIssueLocation };
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 { IssueMatch, createIssuePredicateFromIssueMatch };
5
+ export { createIssuePredicateFromIssueMatch };
6
+ export type { IssueMatch };
@@ -7,4 +7,4 @@ interface IssueOptions {
7
7
  exclude?: IssuePredicateOption;
8
8
  defaultSeverity?: IssueDefaultSeverity;
9
9
  }
10
- export { IssueOptions, IssuePredicateOption };
10
+ export type { IssueOptions, IssuePredicateOption };
@@ -3,4 +3,5 @@ interface IssuePosition {
3
3
  column: number;
4
4
  }
5
5
  declare function compareIssuePositions(positionA?: IssuePosition, positionB?: IssuePosition): number;
6
- export { IssuePosition, compareIssuePositions };
6
+ export { compareIssuePositions };
7
+ export type { IssuePosition };
@@ -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 { IssuePredicate, createTrivialIssuePredicate, composeIssuePredicates };
5
+ export { createTrivialIssuePredicate, composeIssuePredicates };
6
+ export type { IssuePredicate };
@@ -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 { Issue, isIssue, deduplicateAndSortIssues };
12
+ export { isIssue, deduplicateAndSortIssues };
13
+ export type { Issue };
package/lib/logger.d.ts CHANGED
@@ -2,4 +2,4 @@ interface Logger {
2
2
  log: (message: string) => void;
3
3
  error: (message: string) => void;
4
4
  }
5
- export { Logger };
5
+ export type { Logger };
@@ -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 { TsCheckerRspackPluginConfig, createPluginConfig };
16
+ export { createPluginConfig };
17
+ export type { TsCheckerRspackPluginConfig };
@@ -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, TsCheckerRspackPluginHooks };
36
+ export { getPluginHooks };
37
+ export type { TsCheckerRspackPluginHooks };
@@ -10,4 +10,4 @@ interface TsCheckerRspackPluginOptions {
10
10
  logger?: Logger | 'webpack-infrastructure';
11
11
  devServer?: boolean;
12
12
  }
13
- export { TsCheckerRspackPluginOptions };
13
+ export type { TsCheckerRspackPluginOptions };
@@ -13,4 +13,5 @@ interface TsCheckerRspackPluginState {
13
13
  DevServerDoneTap: any | undefined;
14
14
  }
15
15
  declare function createPluginState(): TsCheckerRspackPluginState;
16
- export { TsCheckerRspackPluginState, createPluginState };
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
  }
@@ -1,5 +1,6 @@
1
1
  export { exposeRpc } from './expose-rpc';
2
2
  export { wrapRpc } from './wrap-rpc';
3
- export { createRpcWorker, getRpcWorkerData, RpcWorker } from './rpc-worker';
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';
@@ -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, RpcWorker };
12
+ export { createRpcWorker, getRpcWorkerData };
13
+ export type { RpcWorker };
@@ -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, };
@@ -9,4 +9,4 @@ interface TypeScriptConfigOverwrite {
9
9
  prepend?: boolean;
10
10
  }[];
11
11
  }
12
- export { TypeScriptConfigOverwrite };
12
+ export type { TypeScriptConfigOverwrite };
@@ -4,4 +4,4 @@ interface TypeScriptDiagnosticsOptions {
4
4
  declaration: boolean;
5
5
  global: boolean;
6
6
  }
7
- export { TypeScriptDiagnosticsOptions };
7
+ export type { TypeScriptDiagnosticsOptions };
@@ -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, TypeScriptWorkerConfig };
18
+ export { createTypeScriptWorkerConfig };
19
+ export type { TypeScriptWorkerConfig };
@@ -11,4 +11,4 @@ type TypeScriptWorkerOptions = {
11
11
  profile?: boolean;
12
12
  typescriptPath?: string;
13
13
  };
14
- export { TypeScriptWorkerOptions };
14
+ export type { TypeScriptWorkerOptions };
@@ -6,4 +6,5 @@ interface Pool {
6
6
  readonly drained: Promise<void>;
7
7
  }
8
8
  declare function createPool(size: number): Pool;
9
- export { Pool, createPool };
9
+ export { createPool };
10
+ export type { Pool };
@@ -12,4 +12,4 @@ interface WatchFileSystem {
12
12
  };
13
13
  watch: Watch;
14
14
  }
15
- export { WatchFileSystem, Watchpack };
15
+ export type { WatchFileSystem, Watchpack };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ts-checker-rspack-plugin",
3
- "version": "1.2.6",
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
- "is-glob": "^4.0.3",
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
- "packageManager": "pnpm@10.24.0"
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
+ }