Files
verdaccio/packages/ui-components/.storybook/main.ts
Juan Picado 26a339518f chore: update material-ui and storybook 9 (#5444)
* chore: update material ui 7

* chore: update storybook 9
2025-10-26 12:47:29 +01:00

30 lines
678 B
TypeScript

import type { StorybookConfig } from '@storybook/react-webpack5';
import { dirname, join } from 'node:path';
const config: StorybookConfig = {
stories: ['../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
addons: [
getAbsolutePath('@storybook/addon-links'),
getAbsolutePath('@storybook/addon-webpack5-compiler-babel'),
getAbsolutePath('@storybook/addon-docs'),
],
framework: {
name: '@storybook/react-webpack5',
options: {},
},
staticDirs: ['../public'],
typescript: {
reactDocgen: 'react-docgen-typescript',
},
};
function getAbsolutePath(value) {
return dirname(require.resolve(join(value, 'package.json')));
}
export default config;