You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to generate both an index.d.ts file and an index.d.mts file at the build time, but I couldn't find a way to do this, my current workaround is to use a script that copies *.d.ts files to *.d.mts files in the dist directory after the build.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is it possible to generate typescript declaration files (.d.ts) in both cjs and esm formats when bundling a typescript library?
My
package.json
looks like thisand here's the output
I want to generate both an
index.d.ts
file and anindex.d.mts
file at the build time, but I couldn't find a way to do this, my current workaround is to use a script that copies*.d.ts
files to*.d.mts
files in the dist directory after the build.Beta Was this translation helpful? Give feedback.
All reactions