From ef401b6a97f3e9cdbd41093728c84b3280985c88 Mon Sep 17 00:00:00 2001 From: andresin87 Date: Fri, 17 Nov 2023 15:29:47 +0100 Subject: [PATCH] chore: remove unnecessary changes --- .storybook/main.js | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/.storybook/main.js b/.storybook/main.js index c6e682d96..7d390f8f4 100644 --- a/.storybook/main.js +++ b/.storybook/main.js @@ -1,4 +1,3 @@ -import { dirname, join } from "path"; const turbosnap = require('vite-plugin-turbosnap') const { mergeConfig } = require('vite') @@ -29,7 +28,7 @@ module.exports = { '../packages/**/*.stories.tsx', ], addons: [ - getAbsolutePath("@storybook/addon-links"), + '@storybook/addon-links', { name: '@storybook/addon-docs', options: { @@ -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: { @@ -78,7 +77,3 @@ module.exports = { docsMode: true, }, } - -function getAbsolutePath(value) { - return dirname(require.resolve(join(value, "package.json"))); -}