unjs / mkdist

Lightweight file-to-file transpiler.
MIT License
367 stars 25 forks source link

fix(dts): resolve directory exports in `.dts` files #244

Closed danielroe closed 2 months ago

danielroe commented 2 months ago

resolves https://github.com/nuxt/module-builder/issues/308

with directory indices, currently we output a JS file like this:

export * from "./star/index.mjs";

and a declaration like this:

export * from "./star.mjs";

This PR normalises the DTS generation so both have /index appended.