@rsbuild/plugin-type-check 0.0.15 → 0.0.17
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/dist/index.js +25 -25
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -57,33 +57,33 @@ const pluginTypeCheck = (options = {}) => {
|
|
|
57
57
|
);
|
|
58
58
|
return;
|
|
59
59
|
}
|
|
60
|
-
const
|
|
61
|
-
{
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
60
|
+
const defaultOptions = {
|
|
61
|
+
typescript: {
|
|
62
|
+
// avoid OOM issue
|
|
63
|
+
memoryLimit: 8192,
|
|
64
|
+
// use tsconfig of user project
|
|
65
|
+
configFile: api.context.tsconfigPath,
|
|
66
|
+
typescriptPath
|
|
67
|
+
},
|
|
68
|
+
issue: {
|
|
69
|
+
exclude: [
|
|
70
|
+
{ file: "**/*.(spec|test).ts" },
|
|
71
|
+
{ file: "**/node_modules/**/*" }
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
logger: {
|
|
75
|
+
log() {
|
|
74
76
|
},
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
},
|
|
78
|
-
error(message) {
|
|
79
|
-
console.error(message.replace(/ERROR/g, "Type Error"));
|
|
80
|
-
}
|
|
77
|
+
error(message) {
|
|
78
|
+
console.error(message.replace(/ERROR/g, "Type Error"));
|
|
81
79
|
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
const typeCheckerOptions = (0, import_shared.mergeChainedOptions)({
|
|
83
|
+
defaults: defaultOptions,
|
|
84
|
+
options: forkTsCheckerOptions,
|
|
85
|
+
mergeFn: import_deepmerge.deepmerge
|
|
86
|
+
});
|
|
87
87
|
if (api.context.bundlerType === "rspack" && chain.get("mode") === "production") {
|
|
88
88
|
import_shared.logger.info("Ts checker running...");
|
|
89
89
|
import_shared.logger.info(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/plugin-type-check",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.17",
|
|
4
4
|
"description": "TS checker plugin of Rsbuild",
|
|
5
5
|
"homepage": "https://rsbuild.dev",
|
|
6
6
|
"repository": {
|
|
@@ -22,15 +22,15 @@
|
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"fork-ts-checker-webpack-plugin": "9.0.0",
|
|
25
|
-
"@rsbuild/shared": "0.0.
|
|
25
|
+
"@rsbuild/shared": "0.0.17"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"typescript": "^5.2.2",
|
|
29
|
-
"@rsbuild/core": "0.0.
|
|
30
|
-
"@rsbuild/test-helper": "0.0.
|
|
29
|
+
"@rsbuild/core": "0.0.17",
|
|
30
|
+
"@rsbuild/test-helper": "0.0.17"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@rsbuild/core": "^0.0.
|
|
33
|
+
"@rsbuild/core": "^0.0.17"
|
|
34
34
|
},
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public",
|