File tree Expand file tree Collapse file tree 2 files changed +181
-93
lines changed
infrastructure/eid-wallet/.storybook Expand file tree Collapse file tree 2 files changed +181
-93
lines changed Original file line number Diff line number Diff line change 1
1
import type { StorybookConfig } from '@storybook/sveltekit'
2
+ import { join , dirname } from 'path'
3
+
4
+ function getAbsolutePath ( value : string ) : any {
5
+ return dirname ( require . resolve ( join ( value , 'package.json' ) ) )
6
+ }
2
7
3
8
const config : StorybookConfig = {
4
9
stories : [ '../src/**/*.mdx' , '../src/**/*.stories.@(js|ts)' ] ,
5
10
addons : [
6
-
7
- getAbsolutePath ( "@storybook/addon-essentials" ) ,
8
- getAbsolutePath ( "@chromatic-com/storybook" ) ,
9
- getAbsolutePath ( "@storybook/experimental-addon-test" ) ,
11
+ getAbsolutePath ( '@storybook/addon-essentials' ) ,
12
+ getAbsolutePath ( '@chromatic-com/storybook' ) ,
13
+ getAbsolutePath ( '@storybook/experimental-addon-test' ) ,
10
14
] ,
11
15
framework : {
12
16
name : '@storybook/sveltekit' ,
13
17
options : { } ,
14
18
} ,
15
19
16
- staticDirs : [ " ../static" ] ,
17
- } ;
18
- export default config ;
20
+ staticDirs : [ ' ../static' ] ,
21
+ }
22
+ export default config
You can’t perform that action at this time.
0 commit comments