storybook-addon-rslib 0.1.4 → 0.1.6
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/preset.js +3 -3
- package/package.json +7 -10
package/dist/preset.js
CHANGED
@@ -28,17 +28,17 @@ var import_core2 = require("@rslib/core");
|
|
28
28
|
var rsbuildFinal = async (config, options) => {
|
29
29
|
const { rslib = {} } = options;
|
30
30
|
const { cwd, configPath, libIndex = 0 } = rslib;
|
31
|
-
const
|
31
|
+
const { content } = await (0, import_core2.loadConfig)({
|
32
32
|
cwd,
|
33
33
|
path: configPath
|
34
34
|
});
|
35
|
-
const libConfig = libIndex === false ? {} :
|
35
|
+
const libConfig = libIndex === false ? {} : content.lib[libIndex];
|
36
36
|
if (!libConfig) {
|
37
37
|
throw new Error(
|
38
38
|
`Lib config not found at index ${libIndex}, expect a lib config but got ${libConfig}`
|
39
39
|
);
|
40
40
|
}
|
41
|
-
const { lib: _lib, ...nonLibConfig } =
|
41
|
+
const { lib: _lib, ...nonLibConfig } = content;
|
42
42
|
const mergedLibConfig = (0, import_core.mergeRsbuildConfig)(
|
43
43
|
nonLibConfig,
|
44
44
|
libConfig
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "storybook-addon-rslib",
|
3
|
-
"version": "0.1.
|
3
|
+
"version": "0.1.6",
|
4
4
|
"description": "Storybook addon for loading configuration of Rslib",
|
5
5
|
"keywords": [
|
6
6
|
"storybook",
|
@@ -37,16 +37,16 @@
|
|
37
37
|
"!src/**/*"
|
38
38
|
],
|
39
39
|
"devDependencies": {
|
40
|
-
"@rsbuild/core": "^1.1.
|
41
|
-
"@rslib/core": "^0.
|
40
|
+
"@rsbuild/core": "^1.1.7",
|
41
|
+
"@rslib/core": "^0.1.2",
|
42
42
|
"@types/node": "^18.0.0",
|
43
|
-
"storybook": "8.5.0-alpha.
|
44
|
-
"typescript": "^5.
|
45
|
-
"storybook-builder-rsbuild": "0.1.
|
43
|
+
"storybook": "8.5.0-alpha.15",
|
44
|
+
"typescript": "^5.7.2",
|
45
|
+
"storybook-builder-rsbuild": "0.1.6"
|
46
46
|
},
|
47
47
|
"peerDependencies": {
|
48
48
|
"@rsbuild/core": "^1.0.1",
|
49
|
-
"@rslib/core": "
|
49
|
+
"@rslib/core": "^0.1.1",
|
50
50
|
"storybook-builder-rsbuild": "*"
|
51
51
|
},
|
52
52
|
"peerDependenciesMeta": {
|
@@ -54,9 +54,6 @@
|
|
54
54
|
"optional": true
|
55
55
|
}
|
56
56
|
},
|
57
|
-
"engines": {
|
58
|
-
"node": ">=18.0.0"
|
59
|
-
},
|
60
57
|
"publishConfig": {
|
61
58
|
"access": "public"
|
62
59
|
},
|