tsunami
tsunami copied to clipboard
Remove trailing /index from imports in moduleResolution: node
In my project, I have folders which have an index.ts which re-export all "public" symbols from that folder. I want my imports to come from that folder when applicable:
// module/index.ts
export interface Foo {
bar: string;
}
// other/file.ts
// current import emit:
import { Foo } from "../module/index";
// expected import emit:
import { Foo } from "../module";