fix: cannot find package.json on ESM#2123
fix: cannot find package.json on ESM#2123bcoe merged 3 commits intoyargs:mainfrom jopemachine:fix-pkg-notfound-issue-on-esm
Conversation
|
@jopemachine I don't fully understand this fix, is the issue that there are multiple instances of |
Yes, as I mentioned in this comment, So, existing code can't find proper |
|
@bcoe I tested this fix and I can confirm that it fixes the issue. Seems like a good solution. Hopefully this can be merged and released soon. 🙂 |
|
@jopemachine nit, it would be nice to have a test for this, but going ahead and merging with the hopes of unblocking issues with ava. apologies for the slow review. |
Fixes #2122.
In the case of ava,
mainFilenamechanges like below way.This enable yargs to find ava's package.json properly.