-
-
Notifications
You must be signed in to change notification settings - Fork 27k
Fixes #1684 when installing with yarn online #1685
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
Conversation
@@ -163,9 +163,13 @@ function install(useYarn, dependencies, verbose, isOnline) { | |||
command = 'yarnpkg'; | |||
args = [ | |||
'add', | |||
'--exact', | |||
isOnline === false && '--offline' |
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've tried using a ternary operation here but they all failed, and i didn't want to apply a filter function after concat because i think it obscures the intent.
Oops! I resolved this in master already. I really hope to see contributions from you in the future. |
This is out in |
That's fine, just wanted to fix this for the sake of the project, i hope i will have some contributions in the future 😄 . |
@Timer
|
Thanks for catching it! If you'd like, I'd appreciate an added test case which makes sure we don't install any dependencies other than those 3. |
Sure, i can take a shot at it, should that be in the file, like check for the correct dependencies and if we found other than react, react-dom, react-scripts just |
Yeah you can add it to e2e-installs.sh and either call a node script that inspects the package or use a few unix commands. Unix commands would probably be preferred, but Node totally acceptable. |
I'm sure you could use awk and accomplish this, or grep depending on the version. |
Thanks for the quick fix. 😅 |
This was a quick fix of #1684 which i used to create a new project and the
"false" : "0.0.4"
dependency was gone.