You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is cosmiconfig really needed here? It seems to me that a specific solution for np would be easier to do.
Also, cosmiconfig does all that "searching up the directory tree" stuff, which is great for more complex configuration tools and linters and all that, but a project that uses an np-config, will only ever have one file per package.json. So in most cases just one config file, which is in the project root directory, right?
I also feel like np as a whole moving to ESM would fix this issue "automatically" and is the end goal anyway, as far as I understand. I'll open another issue to track this.
No matter whether
"type": "module"
is used in package.json, we should use ESM for the config file.Blocked by cosmiconfig/cosmiconfig#224.
The text was updated successfully, but these errors were encountered: