mkdist
mkdist copied to clipboard
provide option for disabling `.d.mts` extension
These are experimental at the moment and without widespread support.
https://www.typescriptlang.org/docs/handbook/esm-node.html#new-file-extensions
follow up on https://github.com/unjs/mkdist/pull/26
We have declaration: boolean
option and #162 that generates .d.mts
/ .d.cts
for .mts
and .cts
sources by default.
Does it makes sense that we introduce an option for default declaration ext (declarationExt
) defaulting to .d.ts
and being configurable?