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
Is it possible to disable the automatic extension naming? In our package, we're generating both cjs and mjs, but the type declarations are the same, and it would be redundant to include both. We'd like to just have .d.ts files in the root, and the cjs/mjs files nested in a cjs and esm folder. I can't seem to find a way to do this without having two sets of type declarations. This is my only real gripe. Otherwise, I've enjoyed the shift to this library.
RE:
if you're using TypeScript v4.7 or newer, the extension of your declaration files will depend on the extensions of your output files as controlled by your Rollup config:
.js output files will produce .d.ts and optionally .d.ts.map files
.mjs output files will produce .d.mts and optionally .d.mts.map files
.cjs output files will produce .d.cts and optionally .d.cts.map files
The text was updated successfully, but these errors were encountered:
Question
Is it possible to disable the automatic extension naming? In our package, we're generating both
cjs
andmjs
, but the type declarations are the same, and it would be redundant to include both. We'd like to just have.d.ts
files in the root, and the cjs/mjs files nested in acjs
andesm
folder. I can't seem to find a way to do this without having two sets of type declarations. This is my only real gripe. Otherwise, I've enjoyed the shift to this library.RE:
The text was updated successfully, but these errors were encountered: