Skip to content

Commit

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

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

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

0 comments on commit ef401b6

Please sign in to comment.