DEV Community

Discussion on: How to generate Type Definitions for Distribution on NPM

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt

I usually put declarationMap: true as well.

Not sure if I need sourceMap for publishing?

Collapse
 
davidmaceachern profile image
David MacEachern • Edited

Great idea.

I checked with VSCode and it can currently right click to 'go to definition' with this configuration, but it goes to the d.ts file. Some other editors might not support this.

Looking at what people might prefer is discussed here... so the source map will probably be helpful.

Thanks for noticing that!