@rsbuild/plugin-type-check 1.0.0-alpha.0 → 1.0.0-alpha.2
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 +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -4
- package/package.json +6 -5
package/dist/index.cjs
CHANGED
|
@@ -37,6 +37,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
37
37
|
var import_node_fs = __toESM(require("fs"));
|
|
38
38
|
var import_core = require("@rsbuild/core");
|
|
39
39
|
var import_shared = require("@rsbuild/shared");
|
|
40
|
+
var import_reduce_configs = require("reduce-configs");
|
|
40
41
|
var PLUGIN_TYPE_CHECK_NAME = "rsbuild:type-check";
|
|
41
42
|
var pluginTypeCheck = (options = {}) => {
|
|
42
43
|
return {
|
|
@@ -97,7 +98,7 @@ var pluginTypeCheck = (options = {}) => {
|
|
|
97
98
|
}
|
|
98
99
|
}
|
|
99
100
|
};
|
|
100
|
-
const typeCheckerOptions = (0,
|
|
101
|
+
const typeCheckerOptions = (0, import_reduce_configs.reduceConfigs)({
|
|
101
102
|
initial: defaultOptions,
|
|
102
103
|
config: forkTsCheckerOptions,
|
|
103
104
|
mergeFn: import_shared.deepmerge
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type RsbuildPlugin } from '@rsbuild/core';
|
|
2
2
|
import type ForkTSCheckerPlugin from 'fork-ts-checker-webpack-plugin';
|
|
3
|
+
import { type ConfigChain } from 'reduce-configs';
|
|
3
4
|
type ForkTsCheckerOptions = NonNullable<ConstructorParameters<typeof ForkTSCheckerPlugin>[0]>;
|
|
4
5
|
export type PluginTypeCheckerOptions = {
|
|
5
6
|
/**
|
package/dist/index.js
CHANGED
|
@@ -15,11 +15,9 @@ import path from "path";
|
|
|
15
15
|
|
|
16
16
|
// src/index.ts
|
|
17
17
|
import fs from "fs";
|
|
18
|
-
import {
|
|
19
|
-
logger,
|
|
20
|
-
reduceConfigs
|
|
21
|
-
} from "@rsbuild/core";
|
|
18
|
+
import { logger } from "@rsbuild/core";
|
|
22
19
|
import { CHAIN_ID, deepmerge } from "@rsbuild/shared";
|
|
20
|
+
import { reduceConfigs } from "reduce-configs";
|
|
23
21
|
var PLUGIN_TYPE_CHECK_NAME = "rsbuild:type-check";
|
|
24
22
|
var pluginTypeCheck = (options = {}) => {
|
|
25
23
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/plugin-type-check",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.2",
|
|
4
4
|
"description": "TS checker plugin of Rsbuild",
|
|
5
5
|
"homepage": "https://rsbuild.dev",
|
|
6
6
|
"repository": {
|
|
@@ -25,16 +25,17 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"fork-ts-checker-webpack-plugin": "9.0.2",
|
|
27
27
|
"json5": "^2.2.3",
|
|
28
|
+
"reduce-configs": "^1.0.0",
|
|
28
29
|
"webpack": "^5.92.1",
|
|
29
|
-
"@rsbuild/shared": "1.0.0-alpha.
|
|
30
|
+
"@rsbuild/shared": "1.0.0-alpha.2"
|
|
30
31
|
},
|
|
31
32
|
"devDependencies": {
|
|
32
33
|
"typescript": "^5.5.2",
|
|
33
|
-
"@rsbuild/core": "1.0.0-alpha.
|
|
34
|
-
"@scripts/test-helper": "1.0.0-alpha.
|
|
34
|
+
"@rsbuild/core": "1.0.0-alpha.2",
|
|
35
|
+
"@scripts/test-helper": "1.0.0-alpha.2"
|
|
35
36
|
},
|
|
36
37
|
"peerDependencies": {
|
|
37
|
-
"@rsbuild/core": "^1.0.0-alpha.
|
|
38
|
+
"@rsbuild/core": "^1.0.0-alpha.2"
|
|
38
39
|
},
|
|
39
40
|
"publishConfig": {
|
|
40
41
|
"access": "public",
|