File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change
1
+ import { dirname , join } from 'path' ;
1
2
import type { StorybookConfig } from '@storybook/react-vite' ;
2
3
import remarkGfm from 'remark-gfm' ;
3
4
import { isChromatic } from './utils' ;
@@ -28,7 +29,7 @@ if (isDevMode) {
28
29
29
30
const config : StorybookConfig = {
30
31
framework : {
31
- name : '@storybook/react-vite' ,
32
+ name : getAbsolutePath ( '@storybook/react-vite' ) ,
32
33
options : { }
33
34
} ,
34
35
stories : isChromatic
@@ -78,3 +79,7 @@ const config: StorybookConfig = {
78
79
} ;
79
80
80
81
export default config ;
82
+
83
+ function getAbsolutePath ( value : string ) : any {
84
+ return dirname ( require . resolve ( join ( value , 'package.json' ) ) ) ;
85
+ }
Original file line number Diff line number Diff line change 75
75
"eslint-plugin-prettier" : " ^5.0.0" ,
76
76
"eslint-plugin-react" : " ^7.32.2" ,
77
77
"eslint-plugin-react-hooks" : " ^4.6.0" ,
78
- "eslint-plugin-storybook" : " ^0.6.14 " ,
78
+ "eslint-plugin-storybook" : " ^0.6.15 " ,
79
79
"handlebars" : " ^4.7.7" ,
80
80
"husky" : " ^8.0.0" ,
81
81
"identity-obj-proxy" : " ^3.0.0" ,
Original file line number Diff line number Diff line change @@ -11048,7 +11048,7 @@ __metadata:
11048
11048
languageName: node
11049
11049
linkType: hard
11050
11050
11051
- "eslint-plugin-storybook@npm:^0.6.14 ":
11051
+ "eslint-plugin-storybook@npm:^0.6.15 ":
11052
11052
version: 0.6.15
11053
11053
resolution: "eslint-plugin-storybook@npm:0.6.15"
11054
11054
dependencies:
@@ -21918,7 +21918,7 @@ __metadata:
21918
21918
eslint-plugin-prettier: "npm:^5.0.0"
21919
21919
eslint-plugin-react: "npm:^7.32.2"
21920
21920
eslint-plugin-react-hooks: "npm:^4.6.0"
21921
- eslint-plugin-storybook: "npm:^0.6.14 "
21921
+ eslint-plugin-storybook: "npm:^0.6.15 "
21922
21922
handlebars: "npm:^4.7.7"
21923
21923
husky: "npm:^8.0.0"
21924
21924
identity-obj-proxy: "npm:^3.0.0"
You can’t perform that action at this time.
0 commit comments