Skip to content

Commit 90c4b38

Browse files
committed
fix: make storybook work
1 parent fea2bcf commit 90c4b38

File tree

13 files changed

+128
-275
lines changed

13 files changed

+128
-275
lines changed

.storybook/main.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ const path = require('path');
22
const { mergeConfig } = require('vite');
33

44
module.exports = {
5-
core: {
6-
builder: '@storybook/builder-vite',
7-
},
85
viteFinal(config) {
96
return mergeConfig(config, {
107
resolve: {
@@ -20,4 +17,9 @@ module.exports = {
2017
'@storybook/addon-controls',
2118
'@storybook/addon-actions',
2219
],
20+
framework: {
21+
name: '@storybook/react-vite',
22+
options: {},
23+
},
24+
docs: {},
2325
};

.storybook/manager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { addons } from '@storybook/addons';
1+
import { addons } from '@storybook/manager-api';
22

33
import { theme } from './theme';
44

package.json

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
"postpublish": "del ./package",
4343
"emitDeclarations": "tsc --emitDeclarationOnly",
4444
"build": "rollup -c && pnpm emitDeclarations",
45-
"start:storybook": "start-storybook -p 6006 --ci",
46-
"build:storybook": "del ./storybook-static; NODE_ENV=production build-storybook",
45+
"start:storybook": "storybook dev -p 6006 --ci",
46+
"build:storybook": "del ./storybook-static; NODE_ENV=production storybook build",
4747
"test:lint": "eslint \"src/**/*.{ts,tsx}\" \"stories/**/*.{ts,tsx}\" \"sandboxes/**/*.{ts,tsx}\" \"test/**/*.{ts,tsx}\"",
4848
"test:unit": "vitest run --coverage",
4949
"test:unit:watch": "vitest watch",
@@ -70,11 +70,12 @@
7070
"@storybook/addon-actions": "^8.4.7",
7171
"@storybook/addon-controls": "^8.4.7",
7272
"@storybook/addon-docs": "^8.4.7",
73-
"@storybook/addons": "^7.6.17",
74-
"@storybook/builder-vite": "^8.4.7",
75-
"@storybook/client-api": "^7.6.17",
73+
"@storybook/preview-api": "^8.4.7",
7674
"@storybook/client-logger": "^8.4.7",
75+
"@storybook/manager-api": "^8.4.7",
7776
"@storybook/react": "^8.4.7",
77+
"@storybook/react-vite": "^8.4.7",
78+
"@storybook/theming": "^8.4.7",
7879
"@swc/core": "^1.10.1",
7980
"@swc/helpers": "^0.5.15",
8081
"@testing-library/dom": "^10.4.0",
@@ -118,6 +119,7 @@
118119
"simple-github-release": "^1.0.0",
119120
"size-limit": "^8.0.0",
120121
"standard-version": "^9.3.1",
122+
"storybook": "^8.4.7",
121123
"tsd": "^0.25.0",
122124
"typescript": "^4.9.4",
123125
"vite": "^6.0.3",
@@ -133,5 +135,6 @@
133135
]
134136
}
135137
}
136-
}
138+
},
139+
"packageManager": "[email protected]+sha512.76e2379760a4328ec4415815bcd6628dee727af3779aaa4c914e3944156c4299921a89f976381ee107d41f12cfa4b66681ca9c718f0668fa0831ed4c6d8ba56c"
137140
}

0 commit comments

Comments
 (0)