28 lines
550 B
TypeScript
Raw Normal View History

2023-10-06 17:50:01 +03:30
import { dirname, join } from 'path'
2023-10-13 15:28:37 +03:30
2023-10-06 17:21:49 +03:30
module.exports = {
stories: [
2023-10-13 15:28:37 +03:30
'../src/docs/**/*.mdx',
'../src/components/**/*.mdx',
2023-10-06 17:21:49 +03:30
'../src/components/**/*.stories.@(js|jsx|ts|tsx)',
],
addons: [
getAbsolutePath('@storybook/addon-links'),
getAbsolutePath('@storybook/addon-essentials'),
],
2023-10-06 17:50:01 +03:30
framework: {
name: getAbsolutePath('@storybook/react-vite'),
options: {},
2023-10-06 17:21:49 +03:30
},
docs: {
autodocs: true,
},
}
2023-10-06 17:50:01 +03:30
function getAbsolutePath(value: string): any {
2023-10-06 17:21:49 +03:30
return dirname(require.resolve(join(value, 'package.json')))
}