Skip to content

Commit

Permalink
fix: make storybook work
Browse files Browse the repository at this point in the history
  • Loading branch information
anajavi committed Dec 19, 2024
1 parent fea2bcf commit 90c4b38
Show file tree
Hide file tree
Showing 13 changed files with 128 additions and 275 deletions.
8 changes: 5 additions & 3 deletions .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ const path = require('path');
const { mergeConfig } = require('vite');

module.exports = {
core: {
builder: '@storybook/builder-vite',
},
viteFinal(config) {
return mergeConfig(config, {
resolve: {
Expand All @@ -20,4 +17,9 @@ module.exports = {
'@storybook/addon-controls',
'@storybook/addon-actions',
],
framework: {
name: '@storybook/react-vite',
options: {},
},
docs: {},
};
2 changes: 1 addition & 1 deletion .storybook/manager.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { addons } from '@storybook/addons';
import { addons } from '@storybook/manager-api';

import { theme } from './theme';

Expand Down
15 changes: 9 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
"postpublish": "del ./package",
"emitDeclarations": "tsc --emitDeclarationOnly",
"build": "rollup -c && pnpm emitDeclarations",
"start:storybook": "start-storybook -p 6006 --ci",
"build:storybook": "del ./storybook-static; NODE_ENV=production build-storybook",
"start:storybook": "storybook dev -p 6006 --ci",
"build:storybook": "del ./storybook-static; NODE_ENV=production storybook build",
"test:lint": "eslint \"src/**/*.{ts,tsx}\" \"stories/**/*.{ts,tsx}\" \"sandboxes/**/*.{ts,tsx}\" \"test/**/*.{ts,tsx}\"",
"test:unit": "vitest run --coverage",
"test:unit:watch": "vitest watch",
Expand All @@ -70,11 +70,12 @@
"@storybook/addon-actions": "^8.4.7",
"@storybook/addon-controls": "^8.4.7",
"@storybook/addon-docs": "^8.4.7",
"@storybook/addons": "^7.6.17",
"@storybook/builder-vite": "^8.4.7",
"@storybook/client-api": "^7.6.17",
"@storybook/preview-api": "^8.4.7",
"@storybook/client-logger": "^8.4.7",
"@storybook/manager-api": "^8.4.7",
"@storybook/react": "^8.4.7",
"@storybook/react-vite": "^8.4.7",
"@storybook/theming": "^8.4.7",
"@swc/core": "^1.10.1",
"@swc/helpers": "^0.5.15",
"@testing-library/dom": "^10.4.0",
Expand Down Expand Up @@ -118,6 +119,7 @@
"simple-github-release": "^1.0.0",
"size-limit": "^8.0.0",
"standard-version": "^9.3.1",
"storybook": "^8.4.7",
"tsd": "^0.25.0",
"typescript": "^4.9.4",
"vite": "^6.0.3",
Expand All @@ -133,5 +135,6 @@
]
}
}
}
},
"packageManager": "[email protected]+sha512.76e2379760a4328ec4415815bcd6628dee727af3779aaa4c914e3944156c4299921a89f976381ee107d41f12cfa4b66681ca9c718f0668fa0831ed4c6d8ba56c"
}
Loading

0 comments on commit 90c4b38

Please sign in to comment.