Feature/SW-3245 move jsontohtml * wip * Move JsonToHtml -> design-system * Fix semantic issues within Stories * replace imports of 'storybook/react-vite' with 'storybook/nextjs-vite' * merge Approved-by: Anton Gunnarsson
23 lines
684 B
TypeScript
23 lines
684 B
TypeScript
import { dirname, join } from 'path'
|
|
import type { StorybookConfig } from '@storybook/nextjs-vite'
|
|
|
|
const config: StorybookConfig = {
|
|
stories: ['../lib/**/*.mdx', '../lib/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
|
|
addons: [
|
|
getAbsolutePath('@storybook/addon-links'),
|
|
getAbsolutePath('@storybook/addon-themes'),
|
|
getAbsolutePath('@storybook/addon-vitest'),
|
|
getAbsolutePath('@storybook/addon-docs'),
|
|
getAbsolutePath('@storybook/addon-a11y'),
|
|
],
|
|
framework: {
|
|
name: getAbsolutePath('@storybook/nextjs-vite'),
|
|
options: {},
|
|
},
|
|
}
|
|
export default config
|
|
|
|
function getAbsolutePath(value: string) {
|
|
return dirname(require.resolve(join(value, 'package.json')))
|
|
}
|