Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Core: Fix default story glob #19018

Merged
merged 2 commits into from
Aug 26, 2022
Merged

Core: Fix default story glob #19018

merged 2 commits into from
Aug 26, 2022

Conversation

IanVS
Copy link
Member

@IanVS IanVS commented Aug 25, 2022

Issue:

This fixes a problem when using directory-based story config in 7.0. The previous glob was not valid, and after talking with @shilman, he said docs was removed, and that we need to support *.mdx in addition to the previous *.stories. globs.

What I did

Updated the default glob in normalizeStories

How to test

I tested this in my own project, and it worked, but I don't use mdx very much.

I think ideally, we should add an autoTitle / directory-based config to the sandbox repros, but I'm not sure how to do that.

@IanVS IanVS added the bug label Aug 25, 2022
@IanVS IanVS requested a review from shilman August 25, 2022 16:53
Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks @IanVS

@shilman shilman changed the title Fix default story glob Core: Fix default story glob Aug 26, 2022
@shilman shilman merged commit 53186d8 into next Aug 26, 2022
@shilman shilman deleted the story-glob branch August 26, 2022 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants