Skip to content

Commit f845130

Browse files
Refactor: Update Storybook config for glob pattern
Co-authored-by: ryanclementshax <ryanclementshax@gmail.com>
1 parent 8900383 commit f845130

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.storybook/main.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import type { StorybookConfig } from '@storybook/nextjs'
22

3-
module.exports = {
4-
stories: ['../!(node_modules)/**/*.stories.@(js|jsx|ts|tsx)'],
3+
const config: StorybookConfig = {
4+
// SB9+ uses fast-glob; avoid extglob patterns here
5+
stories: ['../**/*.stories.@(js|jsx|ts|tsx)'],
56
staticDirs: ['../public'],
67
addons: [
78
'@storybook/addon-links',
@@ -25,4 +26,6 @@ module.exports = {
2526
})
2627
return config
2728
}
28-
} satisfies StorybookConfig
29+
}
30+
31+
export default config

0 commit comments

Comments
 (0)