|
1 |
| -import type { StorybookConfig } from '@storybook/sveltekit' |
2 |
| -import { join, dirname } from 'path' |
| 1 | +import type { StorybookConfig } from "@storybook/sveltekit"; |
| 2 | +import { join, dirname } from "path"; |
3 | 3 |
|
4 | 4 | function getAbsolutePath(value: string): any {
|
5 |
| - return dirname(require.resolve(join(value, 'package.json'))) |
| 5 | + return dirname(require.resolve(join(value, "package.json"))); |
6 | 6 | }
|
7 | 7 |
|
8 | 8 | const config: StorybookConfig = {
|
9 |
| - stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|ts)'], |
10 |
| - addons: [ |
11 |
| - getAbsolutePath('@storybook/addon-essentials'), |
12 |
| - getAbsolutePath('@chromatic-com/storybook'), |
13 |
| - getAbsolutePath('@storybook/experimental-addon-test'), |
14 |
| - ], |
15 |
| - framework: { |
16 |
| - name: '@storybook/sveltekit', |
17 |
| - options: {}, |
18 |
| - }, |
| 9 | + stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|ts)"], |
| 10 | + addons: [ |
| 11 | + getAbsolutePath("@storybook/addon-essentials"), |
| 12 | + getAbsolutePath("@chromatic-com/storybook"), |
| 13 | + getAbsolutePath("@storybook/experimental-addon-test"), |
| 14 | + ], |
| 15 | + framework: { |
| 16 | + name: "@storybook/sveltekit", |
| 17 | + options: {}, |
| 18 | + }, |
19 | 19 |
|
20 |
| - staticDirs: ['../static'], |
21 |
| -} |
22 |
| -export default config |
| 20 | + staticDirs: ["../static"], |
| 21 | +}; |
| 22 | +export default config; |
0 commit comments