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 11import 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+ }
27
38const config : StorybookConfig = {
49 stories : [ '../src/**/*.mdx' , '../src/**/*.stories.@(js|ts)' ] ,
510 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' ) ,
1014 ] ,
1115 framework : {
1216 name : '@storybook/sveltekit' ,
1317 options : { } ,
1418 } ,
1519
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