diff --git a/packages/create-rslib/fragments/tools/storybook-react-js/.storybook/main.js b/packages/create-rslib/fragments/tools/storybook-react-js/.storybook/main.js index c3259e8af..7bc9bc0b2 100644 --- a/packages/create-rslib/fragments/tools/storybook-react-js/.storybook/main.js +++ b/packages/create-rslib/fragments/tools/storybook-react-js/.storybook/main.js @@ -18,7 +18,9 @@ const config = { '@storybook/addon-links', '@storybook/addon-essentials', '@storybook/addon-interactions', - 'storybook-addon-rslib', + { + name: getAbsolutePath('storybook-addon-rslib'), + }, ], framework: { name: getAbsolutePath('storybook-react-rsbuild'), diff --git a/packages/create-rslib/fragments/tools/storybook-react-ts/.storybook/main.ts b/packages/create-rslib/fragments/tools/storybook-react-ts/.storybook/main.ts index deedf6ffa..17030b813 100644 --- a/packages/create-rslib/fragments/tools/storybook-react-ts/.storybook/main.ts +++ b/packages/create-rslib/fragments/tools/storybook-react-ts/.storybook/main.ts @@ -19,7 +19,9 @@ const config: StorybookConfig = { '@storybook/addon-links', '@storybook/addon-essentials', '@storybook/addon-interactions', - 'storybook-addon-rslib', + { + name: getAbsolutePath('storybook-addon-rslib'), + }, ], framework: { name: getAbsolutePath('storybook-react-rsbuild'), diff --git a/packages/create-rslib/template-[react]-[storybook,vitest]-js/.storybook/main.js b/packages/create-rslib/template-[react]-[storybook,vitest]-js/.storybook/main.js index c3259e8af..7bc9bc0b2 100644 --- a/packages/create-rslib/template-[react]-[storybook,vitest]-js/.storybook/main.js +++ b/packages/create-rslib/template-[react]-[storybook,vitest]-js/.storybook/main.js @@ -18,7 +18,9 @@ const config = { '@storybook/addon-links', '@storybook/addon-essentials', '@storybook/addon-interactions', - 'storybook-addon-rslib', + { + name: getAbsolutePath('storybook-addon-rslib'), + }, ], framework: { name: getAbsolutePath('storybook-react-rsbuild'), diff --git a/packages/create-rslib/template-[react]-[storybook,vitest]-ts/.storybook/main.ts b/packages/create-rslib/template-[react]-[storybook,vitest]-ts/.storybook/main.ts index deedf6ffa..17030b813 100644 --- a/packages/create-rslib/template-[react]-[storybook,vitest]-ts/.storybook/main.ts +++ b/packages/create-rslib/template-[react]-[storybook,vitest]-ts/.storybook/main.ts @@ -19,7 +19,9 @@ const config: StorybookConfig = { '@storybook/addon-links', '@storybook/addon-essentials', '@storybook/addon-interactions', - 'storybook-addon-rslib', + { + name: getAbsolutePath('storybook-addon-rslib'), + }, ], framework: { name: getAbsolutePath('storybook-react-rsbuild'), diff --git a/packages/create-rslib/template-[react]-[storybook]-js/.storybook/main.js b/packages/create-rslib/template-[react]-[storybook]-js/.storybook/main.js index c3259e8af..7bc9bc0b2 100644 --- a/packages/create-rslib/template-[react]-[storybook]-js/.storybook/main.js +++ b/packages/create-rslib/template-[react]-[storybook]-js/.storybook/main.js @@ -18,7 +18,9 @@ const config = { '@storybook/addon-links', '@storybook/addon-essentials', '@storybook/addon-interactions', - 'storybook-addon-rslib', + { + name: getAbsolutePath('storybook-addon-rslib'), + }, ], framework: { name: getAbsolutePath('storybook-react-rsbuild'), diff --git a/packages/create-rslib/template-[react]-[storybook]-ts/.storybook/main.ts b/packages/create-rslib/template-[react]-[storybook]-ts/.storybook/main.ts index deedf6ffa..17030b813 100644 --- a/packages/create-rslib/template-[react]-[storybook]-ts/.storybook/main.ts +++ b/packages/create-rslib/template-[react]-[storybook]-ts/.storybook/main.ts @@ -19,7 +19,9 @@ const config: StorybookConfig = { '@storybook/addon-links', '@storybook/addon-essentials', '@storybook/addon-interactions', - 'storybook-addon-rslib', + { + name: getAbsolutePath('storybook-addon-rslib'), + }, ], framework: { name: getAbsolutePath('storybook-react-rsbuild'),