@rsbuild/plugin-type-check 1.3.2 → 1.3.3
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 +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ An Rsbuild plugin to run TypeScript type checker in a separate process.
|
|
|
14
14
|
|
|
15
15
|
## Introduction
|
|
16
16
|
|
|
17
|
-
This plugin internally integrates with [ts-checker-rspack-plugin](https://github.com/
|
|
17
|
+
This plugin internally integrates with [ts-checker-rspack-plugin](https://github.com/rstackjs/ts-checker-rspack-plugin).
|
|
18
18
|
|
|
19
19
|
The type checking logic of `ts-checker-rspack-plugin` is similar to the native `tsc` command of TypeScript. It automatically reads the configuration options from `tsconfig.json` and can also be modified via the configuration options provided by the Type Check plugin.
|
|
20
20
|
|
|
@@ -100,7 +100,7 @@ pluginTypeCheck({
|
|
|
100
100
|
|
|
101
101
|
### tsCheckerOptions
|
|
102
102
|
|
|
103
|
-
Modify the options of `ts-checker-rspack-plugin`, please refer to [ts-checker-rspack-plugin - README](https://github.com/
|
|
103
|
+
Modify the options of `ts-checker-rspack-plugin`, please refer to [ts-checker-rspack-plugin - README](https://github.com/rstackjs/ts-checker-rspack-plugin#readme) to learn about available options.
|
|
104
104
|
|
|
105
105
|
- **Type:** `Object | Function`
|
|
106
106
|
- **Default:**
|
package/dist/index.cjs
CHANGED
|
@@ -93,7 +93,7 @@ const pluginTypeCheck = (options = {})=>({
|
|
|
93
93
|
logger: {
|
|
94
94
|
log () {},
|
|
95
95
|
error (message) {
|
|
96
|
-
console.error(message.replace(/ERROR/g, 'Type Error'));
|
|
96
|
+
console.error(message.replace(/ERROR/g, 'Type Error').replace(/WARNING/g, 'Type Warning'));
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export type PluginTypeCheckerOptions = {
|
|
|
10
10
|
enable?: boolean;
|
|
11
11
|
/**
|
|
12
12
|
* To modify the options of `ts-checker-rspack-plugin`.
|
|
13
|
-
* @see https://github.com/
|
|
13
|
+
* @see https://github.com/rstackjs/ts-checker-rspack-plugin#readme
|
|
14
14
|
*/
|
|
15
15
|
tsCheckerOptions?: ConfigChain<TsCheckerOptions>;
|
|
16
16
|
/**
|
package/dist/index.js
CHANGED
|
@@ -49,7 +49,7 @@ const pluginTypeCheck = (options = {})=>({
|
|
|
49
49
|
logger: {
|
|
50
50
|
log () {},
|
|
51
51
|
error (message) {
|
|
52
|
-
console.error(message.replace(/ERROR/g, 'Type Error'));
|
|
52
|
+
console.error(message.replace(/ERROR/g, 'Type Error').replace(/WARNING/g, 'Type Warning'));
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/plugin-type-check",
|
|
3
|
-
"version": "1.3.
|
|
4
|
-
"repository": "https://github.com/
|
|
3
|
+
"version": "1.3.3",
|
|
4
|
+
"repository": "https://github.com/rstackjs/rsbuild-plugin-type-check",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"typescript": "^5.9.3"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
|
-
"@rsbuild/core": "1.
|
|
57
|
+
"@rsbuild/core": "^1.0.0 || ^2.0.0-0"
|
|
58
58
|
},
|
|
59
59
|
"peerDependenciesMeta": {
|
|
60
60
|
"@rsbuild/core": {
|