Skip to content

Commit

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

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

stories: ['../stories/**/*.stories.mdx', '../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 @@ -28,11 +25,8 @@ export default {
},
});
},

docs: {},

typescript: {
reactDocgen: 'react-docgen-typescript',
docs: {
autodocs: 'tag',
},
};

Expand Down
19 changes: 8 additions & 11 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/helpers": "*",
"@dnd-kit/react": "*",
"@dnd-kit/helpers": "*",
"@tanstack/react-virtual": "^3.0.0-beta.54",
"clipboard": "^2.0.11",
"prismjs": "^1.29.0",
Expand All @@ -26,19 +26,16 @@
"devDependencies": {
"@dnd-kit/eslint-config": "*",
"@measured/auto-frame-component": "^0.1.7",
"@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",
"@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",
"@vitejs/plugin-react": "^4.2.1",
"eslint": "^8.56.0",
"serve": "^14.2.1",
"storybook": "^8.4.1",
"storybook": "^8.1.5",
"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 3d45caf

Please sign in to comment.