File tree Expand file tree Collapse file tree 3 files changed +111
-155
lines changed
packages/redux-devtools-ui Expand file tree Collapse file tree 3 files changed +111
-155
lines changed Original file line number Diff line number Diff line change 11import type { StorybookConfig } from '@storybook/react-webpack5' ;
22
3- import { join , dirname } from 'path' ;
3+ import { dirname } from 'node:path' ;
4+ import { fileURLToPath } from 'node:url' ;
45
56/**
67 * This function is used to resolve the absolute path of a package.
78 * It is needed in projects that use Yarn PnP or are set up within a monorepo.
89 */
9- function getAbsolutePath ( value : string ) : any {
10- return dirname ( require . resolve ( join ( value , 'package.json' ) ) ) ;
10+ function getAbsolutePath ( packageName : string ) {
11+ return dirname (
12+ fileURLToPath ( import . meta. resolve ( `${ packageName } /package.json` ) ) ,
13+ ) ;
1114}
15+
1216const config : StorybookConfig = {
1317 stories : [ '../src/**/*.mdx' , '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)' ] ,
1418 addons : [ getAbsolutePath ( '@storybook/addon-onboarding' ) ] ,
Original file line number Diff line number Diff line change 6565 "@babel/preset-typescript" : " ^7.28.5" ,
6666 "@emotion/react" : " ^11.14.0" ,
6767 "@emotion/styled" : " ^11.14.1" ,
68- "@storybook/addon-onboarding" : " ^9.1.16 " ,
69- "@storybook/react-vite" : " ^9.1.16 " ,
68+ "@storybook/addon-onboarding" : " ^10.0.2 " ,
69+ "@storybook/react-vite" : " ^10.0.2 " ,
7070 "@testing-library/dom" : " ^10.4.1" ,
7171 "@testing-library/react" : " ^16.3.0" ,
7272 "@testing-library/user-event" : " ^14.6.1" ,
8383 "react-dom" : " ^19.2.0" ,
8484 "react-is" : " ^19.2.0" ,
8585 "rimraf" : " ^6.0.1" ,
86- "storybook" : " ^9.1.16 " ,
86+ "storybook" : " ^10.0.2 " ,
8787 "ts-jest" : " ^29.4.5" ,
8888 "typescript" : " ~5.9.3" ,
8989 "vite" : " ^7.1.12"
You can’t perform that action at this time.
0 commit comments