-
-
Notifications
You must be signed in to change notification settings - Fork 221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to specify outExtension
for generated dts files?
#939
Comments
Facing the exact same problem. |
It looks like 'outExtension' is overridden to 'undefined' when it's passed to rollup. In the rollup dts handling is even a check if there is a custom 'outExtension'. |
is there any workaround? I would like to use 'file.d.mts' for esm typings. There is no merged PR but seems like nobody want to merge it |
@zvictor Seems like dts factory has been disabled explicitly? Is there any way to specify it, eg use https://github.com/vkiryukhin/jsonfn? Or merge https://github.com/egoist/tsup/pull/1053/files ? |
Like we can modify output extension of JavaScript files is there also a way to do the same for type definition files?
I tried returning this because
dts
was showing up in the autocomplete return options but it doesn't work.Output type definition files generated after building have extensions
.d.ts
and.d.cts
which is the default since my package is of type module. Is there a way to do this?Upvote & Fund
The text was updated successfully, but these errors were encountered: