Skip to content

Commit

Permalink
fix(Storybook): upgrade to v7.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
MellyGray committed Sep 19, 2023
1 parent beb948b commit baff74d
Show file tree
Hide file tree
Showing 3 changed files with 3,935 additions and 669 deletions.
15 changes: 10 additions & 5 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
import { dirname, join } from "path";
import type { StorybookConfig } from '@storybook/react-vite'

const config: StorybookConfig = {
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-interactions',
'@storybook/addon-a11y'
getAbsolutePath("@storybook/addon-links"),
getAbsolutePath("@storybook/addon-essentials"),
getAbsolutePath("@storybook/addon-interactions"),
getAbsolutePath("@storybook/addon-a11y")
],
framework: {
name: '@storybook/react-vite',
name: getAbsolutePath("@storybook/react-vite"),
options: {}
},
docs: {
Expand All @@ -18,3 +19,7 @@ const config: StorybookConfig = {
staticDirs: ['../public']
}
export default config

function getAbsolutePath(value: string): any {
return dirname(require.resolve(join(value, "package.json")));
}
Loading

0 comments on commit baff74d

Please sign in to comment.