dependency-check icon indicating copy to clipboard operation
dependency-check copied to clipboard

support main without extension

Open unional opened this issue 5 years ago • 0 comments

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.

unional avatar May 12 '19 07:05 unional