dependency-check
dependency-check copied to clipboard
support main without extension
package.json like this work:
{
"main": "lib/index.js"
}
package.json like this does not work:
{
"main": "lib/index"
}
There was a recommendation to use the second one and let NodeJS resolves the right file, whether it is index.js
, index.node
or index.mjs
.