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
I would categorise this as a super-duper-edge case were it not for the fact that the offending package, @mapbox/node-pre-gyp, has around 3.3m weekly downloads.
That package's package.json contains the following:
Yeah I think we could exclude .html even if explicitly defined in main.
Technically this usage is valid today if index.html is actually a JS file and Node.js will happily accept it.
But in practice that is probably not common and so we could skip the parse step.
Another alternative is to parse and fail, then ignore the warning if it ends with .html. Although that seems like something the consumer of nft can do too, like this: sveltejs/kit#6810
I would categorise this as a super-duper-edge case were it not for the fact that the offending package, @mapbox/node-pre-gyp, has around 3.3m weekly downloads.
That package's
package.json
contains the following:Unsurprisingly, this blows up: sveltejs/kit#5577 (comment).
Perhaps
pkg.main
should be treated as a script or asset based on the same extension logic as other files?The text was updated successfully, but these errors were encountered: