mkdist icon indicating copy to clipboard operation
mkdist copied to clipboard

provide option for disabling `.d.mts` extension

Open danielroe opened this issue 3 years ago • 1 comments

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

danielroe avatar Feb 23 '22 09:02 danielroe

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?

pi0 avatar Jul 18 '23 15:07 pi0