-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Support custom react-scripts
packages
#4681
Comments
IMO it's not an ultimate solution
Sounds better to me. @chadfawcett what do you think ? |
I think I'd prefer an environment variable over a flag, but I like the idea of referencing the symlink. @mrmckeb Do you know if the |
@igor-dv @chadfawcett Thanks for your time. I'll create a quick PR now with the It's definitely |
We can move the conversation to #4712 if you would like. I've created an example there, resolving the path of the |
Resolved by #4712 |
Is your feature request related to a problem? Please describe.
CRA supports the flag
--scripts-version
(it's not well documented), which they then use to set up CRA.I can see that storybook is hardcoded to
react-scripts
. Unfortunately, packages installed with--scripts-version
can have a different name thanreact-scripts
, which means storybook no longer loads this config.Describe the solution you'd like
I propose that we allow users to set the name of the
react-scripts
package, or try to infer from thereact-scripts
symlink in.bin
.Describe alternatives you've considered
I can rename my package to
react-scripts
as a workaround, but this can be confusing for users, and others will come across this issue in future.Are you able to assist bring the feature to reality?
Yes, I am happy to. I'm not sure which path to go down:
The text was updated successfully, but these errors were encountered: