Skip to content

Commit cd092e7

Browse files
committed
try to solve slash issue
1 parent b65a4b2 commit cd092e7

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

packages/storybook-builder/src/list-stories.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,12 @@ export async function listStories(options: Options) {
4141
const pattern = join(directory, files);
4242
const absolutePattern = isAbsolute(pattern) ? pattern : join(options.configDir, pattern);
4343

44-
const stories = await glob(slash(absolutePattern), {
45-
...excludeNodeModulesGlobOptions(absolutePattern),
46-
follow: true,
47-
});
44+
const stories = (
45+
await glob(slash(absolutePattern), {
46+
...excludeNodeModulesGlobOptions(absolutePattern),
47+
follow: true,
48+
})
49+
).map(slash);
4850

4951
console.log('new > found stories', stories);
5052

0 commit comments

Comments
 (0)