Skip to content

Commit

Permalink
chore: upgrade storybook 7.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
andresin87 committed Nov 17, 2023
1 parent 3f21547 commit 720ca7c
Show file tree
Hide file tree
Showing 3 changed files with 474 additions and 468 deletions.
15 changes: 10 additions & 5 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { dirname, join } from "path";
const turbosnap = require('vite-plugin-turbosnap')
const { mergeConfig } = require('vite')

Expand Down Expand Up @@ -28,7 +29,7 @@ module.exports = {
'../packages/**/*.stories.tsx',
],
addons: [
'@storybook/addon-links',
getAbsolutePath("@storybook/addon-links"),
{
name: '@storybook/addon-docs',
options: {
Expand All @@ -46,13 +47,13 @@ module.exports = {
controls: false,
},
},
'@storybook/addon-interactions',
'@storybook/addon-styling',
'@storybook/addon-a11y',
getAbsolutePath("@storybook/addon-interactions"),
getAbsolutePath("@storybook/addon-styling"),
getAbsolutePath("@storybook/addon-a11y"),
],
staticDirs: ['../public'],
framework: {
name: '@storybook/react-vite',
name: getAbsolutePath("@storybook/react-vite"),
options: {},
},
features: {
Expand All @@ -77,3 +78,7 @@ module.exports = {
docsMode: true,
},
}

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

0 comments on commit 720ca7c

Please sign in to comment.