@rsbuild/plugin-type-check 0.1.2 → 0.1.4
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 +4 -3
- package/dist/index.mjs +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -33,6 +33,7 @@ __export(src_exports, {
|
|
|
33
33
|
pluginTypeCheck: () => pluginTypeCheck
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(src_exports);
|
|
36
|
+
var import_core = require("@rsbuild/core");
|
|
36
37
|
var import_shared = require("@rsbuild/shared");
|
|
37
38
|
var pluginTypeCheck = (options = {}) => {
|
|
38
39
|
return {
|
|
@@ -53,7 +54,7 @@ var pluginTypeCheck = (options = {}) => {
|
|
|
53
54
|
paths: [api.context.rootPath]
|
|
54
55
|
});
|
|
55
56
|
} catch (err) {
|
|
56
|
-
|
|
57
|
+
import_core.logger.warn(
|
|
57
58
|
'"typescript" is not found in current project, Type checker will not work.'
|
|
58
59
|
);
|
|
59
60
|
return;
|
|
@@ -86,8 +87,8 @@ var pluginTypeCheck = (options = {}) => {
|
|
|
86
87
|
mergeFn: import_shared.deepmerge
|
|
87
88
|
});
|
|
88
89
|
if (api.context.bundlerType === "rspack" && chain.get("mode") === "production") {
|
|
89
|
-
|
|
90
|
-
|
|
90
|
+
import_core.logger.info("Ts checker running...");
|
|
91
|
+
import_core.logger.info(
|
|
91
92
|
"Ts checker is running slowly and will block builds until it is complete, please be patient and wait."
|
|
92
93
|
);
|
|
93
94
|
}
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/plugin-type-check",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "TS checker plugin of Rsbuild",
|
|
5
5
|
"homepage": "https://rsbuild.dev",
|
|
6
6
|
"repository": {
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"fork-ts-checker-webpack-plugin": "9.0.0",
|
|
26
|
-
"@rsbuild/shared": "0.1.
|
|
26
|
+
"@rsbuild/shared": "0.1.4"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"typescript": "^5.3.0",
|
|
30
|
-
"@rsbuild/core": "0.1.
|
|
31
|
-
"@rsbuild/test-helper": "0.1.
|
|
30
|
+
"@rsbuild/core": "0.1.4",
|
|
31
|
+
"@rsbuild/test-helper": "0.1.4"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"@rsbuild/core": "0.x"
|