-
Notifications
You must be signed in to change notification settings - Fork 199
Closed
Labels
Description
Enhancement proposal:
I have simple npm module which contains "only" index.js (in commonjs) and index.ts - its source.
But its import cannot be found and typechecked by current atom-typescript because it requires index.d.ts and also definition of that in package.json. First it could be more clever and just change extension from main index.js. but if it cannot find index.d.ts just live with index.ts...
Another option would be to make moduleResolution customizable - like ts.CompilerHost can do.
It would probably need crazy escaping of javascript in tsconfig.json, but ultimately it would allow everything.
till now I used nasty import * as xxx from "node_modules/xxx/index"; but now it should be possible much nicer import * as xxx from "xxx";