Fixes #1684 when installing with yarn online#1685
Fixes #1684 when installing with yarn online#1685lpalmes wants to merge 1 commit intofacebook:masterfrom lpalmes:master
Conversation
| args = [ | ||
| 'add', | ||
| '--exact', | ||
| isOnline === false && '--offline' |
There was a problem hiding this comment.
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.