stealjs / steal

Gets JavaScript
https://stealjs.com
MIT License
1.36k stars 522 forks source link

Add support for packages with a `main` that should resolve to index.js #1507

Closed chasenlehara closed 5 years ago

chasenlehara commented 5 years ago

@feathers/common recently changed their main in package.json to lib/, expecting it to resolve to lib/index.js: https://github.com/feathersjs/feathers/blob/19259dd48fd84d121cd6dc71d71267720bdfb3d8/packages/commons/package.json#L26

Steal looks for lib/lib and lib/lib/index.js, but it doesn’t look for lib/index.js. It’d be nice if it did.