Skip to content

Commit

Permalink
Update storybook to ^8.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
clauderic committed Nov 4, 2024
1 parent 7ef9864 commit 5b93d19
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 12 deletions.
14 changes: 10 additions & 4 deletions apps/stories/.storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
import {dirname, join} from 'path';
import {mergeConfig, optimizeDeps} from 'vite';
import {mergeConfig} from 'vite';

export default {
stories: ['../stories/**/*.stories.mdx', '../stories/**/*.stories.tsx'],
stories: ['../stories/**/*.stories.tsx'],

addons: [
getAbsolutePath('@storybook/addon-links'),
getAbsolutePath('@storybook/addon-essentials'),
getAbsolutePath('storybook-dark-mode'),
],

framework: {
name: getAbsolutePath('@storybook/react-vite'),
options: {
strictMode: true,
},
},

async viteFinal(config, {configType}) {
// customize the Vite config here
return mergeConfig(config, {
Expand All @@ -25,8 +28,11 @@ export default {
},
});
},
docs: {
autodocs: 'tag',

docs: {},

typescript: {
reactDocgen: 'react-docgen-typescript',
},
};

Expand Down
19 changes: 11 additions & 8 deletions apps/stories/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"dependencies": {
"@dnd-kit/abstract": "*",
"@dnd-kit/dom": "*",
"@dnd-kit/react": "*",
"@dnd-kit/helpers": "*",
"@dnd-kit/react": "*",
"@tanstack/react-virtual": "^3.0.0-beta.54",
"clipboard": "^2.0.11",
"prismjs": "^1.29.0",
Expand All @@ -25,16 +25,19 @@
},
"devDependencies": {
"@dnd-kit/eslint-config": "*",
"@storybook/addon-actions": "^8.1.5",
"@storybook/addon-docs": "^8.1.5",
"@storybook/addon-essentials": "^8.1.5",
"@storybook/addon-links": "^8.1.5",
"@storybook/react": "^8.1.5",
"@storybook/react-vite": "^8.1.5",
"@storybook/addon-actions": "^8.4.1",
"@storybook/addon-docs": "^8.4.1",
"@storybook/addon-essentials": "^8.4.1",
"@storybook/addon-links": "^8.4.1",
"@storybook/manager-api": "^8.4.1",
"@storybook/react": "^8.4.1",
"@storybook/react-vite": "^8.4.1",
"@storybook/theming": "^8.4.1",
"@storybook/types": "^8.4.1",
"@vitejs/plugin-react": "^4.2.1",
"eslint": "^8.56.0",
"serve": "^14.2.1",
"storybook": "^8.1.5",
"storybook": "^8.4.1",
"storybook-dark-mode": "^4.0.1",
"typescript": "^5.5.2",
"vite": "^5.1.1"
Expand Down
Binary file modified bun.lockb
Binary file not shown.

0 comments on commit 5b93d19

Please sign in to comment.