fix(storybook): clean up configuration after v10.3 upgrade

Signed-off-by: Charles de Dreuille <charles.dedreuille@gmail.com>
This commit is contained in:
Charles de Dreuille
2026-01-29 11:13:33 +00:00
parent 3a8b5e23df
commit 2048ff4946
5 changed files with 146 additions and 171 deletions
+2 -4
View File
@@ -26,16 +26,14 @@ const allStories = isChromatic
];
const rootPath = '../';
const storiesSrcMdx = 'src/**/*.mdx';
const storiesSrcGlob = 'src/**/*.stories.@(js|jsx|mjs|ts|tsx)';
const getStoriesPath = (element: string, pattern: string) =>
posix.join(rootPath, element, pattern);
const stories = allStories.flatMap(element => [
getStoriesPath(element, storiesSrcMdx),
const stories = allStories.map(element =>
getStoriesPath(element, storiesSrcGlob),
]);
);
// Resolve absolute path of a package. Needed in monorepos.
function getAbsolutePath(value: string): any {
-2
View File
@@ -33,7 +33,6 @@ export default definePreview({
{ value: 'light', icon: 'circlehollow', title: 'Light' },
{ value: 'dark', icon: 'circle', title: 'Dark' },
],
showName: true,
dynamicTitle: true,
},
},
@@ -47,7 +46,6 @@ export default definePreview({
{ value: 'backstage', title: 'Backstage' },
{ value: 'spotify', title: 'Spotify' },
],
showName: true,
dynamicTitle: true,
},
},