-
Notifications
You must be signed in to change notification settings - Fork 338
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
fix(deps): fixed yargs import for yarn 3.x + pnp #2348
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2348 +/- ##
=======================================
Coverage 99.88% 99.88%
=======================================
Files 32 32
Lines 1699 1699
=======================================
Hits 1697 1697
Misses 2 2
Continue to review full report at Codecov.
|
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.
@leaumar lgtm, it looks that we can now also remove that $FlowFixMe and related todo comments, I also confirmed locally that the flowtype checks are passing just fine without that now. Would you mind to remove line 9 and 10 in this PR? (if you can't, don't worry, I can take care of that in a separate patch).
As I have also expressed in the issue comments, thank you for having looked into how to fix this.
I'll push that in a minute, no prob. I feel we should forward this issue to the yargs devs too, since the cause is an inconsistency in their exports and there may be other middle projects breaking on this. I'll just go ahead and refer them here? |
Do the current changes on master since the last release permit a speedy patch release btw? Would love this to be rolled out asap if possible. |
I was already planning to release a minor version soon enough (I've been a bit busy, but I should be able to get to it at least by next week) and merging on master PRs that fit in what I consider ok for a minor version. This applies too. |
sure, feel free to go ahead and report it to yargs, it is possible that there may be reasons that we may be missing or to be something that would be at least worth to document more explicitly in the yargs docs or README, either case yargs maintainers will know if they feel that is something they want to follow up to on their side or not. |
Alright, thanks. Is gonna feel good to stop waking up to tons of CI failure emails every morning after Renovate rebases all the failing dependency bump PRs. 😛 |
fixes #2332 , process of arriving at this change documented there
I did not make this change out of some sort of expertise in js dependency loading mechanisms, but by trial and error and eliminating the odd one out. I did however test this change in my personal project by modifying the downloaded npm artifact's code in the same way, and I ran
npm test
in this repo after this change too. If I understand the author's comment right, this change can't be harmful.I'm willing to put in more time to work with you on proving this change fixes something, but please reach out with instructions then. I'll give you a live demo via a discord call if you want, or a repo to reproduce it on (which is already linked in the issue).