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 {
|
||||
|
||||
Reference in New Issue
Block a user