fix(storybook): clean up configuration after v10.3 upgrade
Signed-off-by: Charles de Dreuille <charles.dedreuille@gmail.com>
This commit is contained in:
+2
-4
@@ -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 {
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user