-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
IMPROVE storybook's compatibility to work within a monorepo #8822
Conversation
This pull request is being automatically deployed with ZEIT Now (learn more). 🔍 Inspect: https://zeit.co/storybook/monorepo/3hsm84bro |
This should drastically improve monorepo support
… in a monorepo) (such as ours)
export const nodeModulesPaths = path.resolve('./node_modules'); | ||
export const excludePaths = [nodeModulesPaths]; | ||
export const excludePaths = [/node_modules/]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can confirm that this line fixes my problems in a monorepo 🎉
# Conflicts: # lib/core/src/server/preview/iframe-webpack.config.js
Is the |
no not yet, we'll start publishing alphas of it when 5.3 is published as latest |
@astrotim Nope. I plan to release 5.3 this weekend and then cut over so that 6.0 gets released on the |
OK great, I'm looking forward to taking it for a spin in our monorepo |
Is there an example of how to use it? I have upgraded to
|
Issue: #3346 #5949
What I did
node_modules
folders might be more then 1, and not in the same place always. making this a regex makes sure that we never transform something from a path that hasnode_modules in it
.