unjs / mkdist

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

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

Closed danielroe closed 1 month ago

danielroe commented 1 month 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.