mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-12 07:13:34 +03:00
c177419aee
* bump SB version * fix Segmented control import * formatting fix
23 lines
694 B
TypeScript
23 lines
694 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)'],
|
|
addons: [
|
|
getAbsolutePath('@storybook/addon-links'),
|
|
getAbsolutePath('@storybook/addon-essentials'),
|
|
getAbsolutePath('@chromatic-com/storybook'),
|
|
getAbsolutePath('@storybook/addon-interactions'),
|
|
getAbsolutePath('storybook-dark-mode')
|
|
],
|
|
framework: {
|
|
name: getAbsolutePath('@storybook/sveltekit'),
|
|
options: {}
|
|
}
|
|
};
|
|
export default config;
|
|
|
|
function getAbsolutePath(value: string): any {
|
|
return dirname(require.resolve(join(value, 'package.json')));
|
|
}
|