@rsbuild/plugin-type-check 0.7.2 → 0.7.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/dist/index.cjs +3 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -5
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -90,9 +90,9 @@ var pluginTypeCheck = (options = {}) => {
|
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
};
|
|
93
|
-
const typeCheckerOptions = (0, import_shared.
|
|
94
|
-
|
|
95
|
-
|
|
93
|
+
const typeCheckerOptions = (0, import_shared.reduceConfigs)({
|
|
94
|
+
initial: defaultOptions,
|
|
95
|
+
config: forkTsCheckerOptions,
|
|
96
96
|
mergeFn: import_shared.deepmerge
|
|
97
97
|
});
|
|
98
98
|
if (isProd) {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ConfigChain, RsbuildPlugin } from '@rsbuild/core';
|
|
2
2
|
import ForkTSCheckerPlugin from 'fork-ts-checker-webpack-plugin';
|
|
3
3
|
|
|
4
4
|
type ForkTsCheckerOptions = NonNullable<ConstructorParameters<typeof ForkTSCheckerPlugin>[0]>;
|
|
@@ -12,7 +12,7 @@ type PluginTypeCheckerOptions = {
|
|
|
12
12
|
* To modify the options of `fork-ts-checker-webpack-plugin`.
|
|
13
13
|
* @see https://github.com/TypeStrong/fork-ts-checker-webpack-plugin#readme
|
|
14
14
|
*/
|
|
15
|
-
forkTsCheckerOptions?:
|
|
15
|
+
forkTsCheckerOptions?: ConfigChain<ForkTsCheckerOptions>;
|
|
16
16
|
};
|
|
17
17
|
declare const pluginTypeCheck: (options?: PluginTypeCheckerOptions) => RsbuildPlugin;
|
|
18
18
|
|
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
9
9
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
10
10
|
});
|
|
11
11
|
|
|
12
|
-
// ../../node_modules/.pnpm/@modern-js+module-tools@2.
|
|
12
|
+
// ../../node_modules/.pnpm/@modern-js+module-tools@2.51.0_eslint@9.4.0_typescript@5.4.5/node_modules/@modern-js/module-tools/shims/esm.js
|
|
13
13
|
import { fileURLToPath } from "url";
|
|
14
14
|
import path from "path";
|
|
15
15
|
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
NODE_MODULES_REGEX,
|
|
21
21
|
deepmerge,
|
|
22
22
|
fse,
|
|
23
|
-
|
|
23
|
+
reduceConfigs
|
|
24
24
|
} from "@rsbuild/shared";
|
|
25
25
|
var pluginTypeCheck = (options = {}) => {
|
|
26
26
|
return {
|
|
@@ -77,9 +77,9 @@ var pluginTypeCheck = (options = {}) => {
|
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
};
|
|
80
|
-
const typeCheckerOptions =
|
|
81
|
-
|
|
82
|
-
|
|
80
|
+
const typeCheckerOptions = reduceConfigs({
|
|
81
|
+
initial: defaultOptions,
|
|
82
|
+
config: forkTsCheckerOptions,
|
|
83
83
|
mergeFn: deepmerge
|
|
84
84
|
});
|
|
85
85
|
if (isProd) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/plugin-type-check",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.3",
|
|
4
4
|
"description": "TS checker plugin of Rsbuild",
|
|
5
5
|
"homepage": "https://rsbuild.dev",
|
|
6
6
|
"repository": {
|
|
@@ -25,15 +25,15 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"fork-ts-checker-webpack-plugin": "9.0.2",
|
|
27
27
|
"webpack": "^5.91.0",
|
|
28
|
-
"@rsbuild/shared": "0.7.
|
|
28
|
+
"@rsbuild/shared": "0.7.3"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"typescript": "^5.4.2",
|
|
32
|
-
"@rsbuild/core": "0.7.
|
|
33
|
-
"@scripts/test-helper": "0.7.
|
|
32
|
+
"@rsbuild/core": "0.7.3",
|
|
33
|
+
"@scripts/test-helper": "0.7.3"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@rsbuild/core": "^0.7.
|
|
36
|
+
"@rsbuild/core": "^0.7.3"
|
|
37
37
|
},
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public",
|