mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-21 00:21:35 +03:00
22 lines
659 B
TypeScript
22 lines
659 B
TypeScript
import { dirname, join } from 'path';
|
|
import type { StorybookConfig } from '@storybook/sveltekit';
|
|
|
|
const config: StorybookConfig = {
|
|
stories: ['../src/stories/**/*.mdx', '../src/stories/**/*.stories.@(js|jsx|mjs|ts|tsx|svelte)'],
|
|
addons: [
|
|
getAbsolutePath('@storybook/addon-links'),
|
|
getAbsolutePath('@storybook/addon-essentials'),
|
|
getAbsolutePath('storybook-dark-mode'),
|
|
getAbsolutePath('@storybook/experimental-addon-test')
|
|
],
|
|
framework: {
|
|
name: getAbsolutePath('@storybook/sveltekit'),
|
|
options: {}
|
|
}
|
|
};
|
|
export default config;
|
|
|
|
function getAbsolutePath(value: string): any {
|
|
return dirname(require.resolve(join(value, 'package.json')));
|
|
}
|