Fix Chokidar watch so Story add or remove is picked up#625
Conversation
🦋 Changeset detectedLatest commit: 457c39a The changes in this PR will be included in the next version bump. This PR includes changesets to release 13 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
| }; | ||
|
|
||
| // Story file pattern - matches .stories.{js,jsx,ts,tsx,mdx} | ||
| export const STORY_FILE_REGEX = /\.stories\.(js|jsx|ts|tsx|mdx)$/; |
There was a problem hiding this comment.
we should not redefine this here, there is already a default and users can customize it
There was a problem hiding this comment.
Ah, apologies, missed that 😅 just pushed an update to use the given pattern and also realised picomatch can find the base path so removed the custom script to do it
|
@tajo is there anything else I should do on this PR to make it ready to review / merge? The hot reload could make the life of the designer on our team so much better! ❤️ |
This is a fix for #606 that I also ran into.