7 ms·
Yep. And if you’re writing typescript, please include type definitions, source maps, type definition source maps and the original typescript source. Having all
by josephg 3y ago
Yep. And if you’re writing typescript, please include type definitions, source maps, type definition source maps and the original typescript source.
Having all of this stuff makes it possible to ctrl+click on functions in my libraries and read the corresponding source code. That’s a godsend during development - well worth a few extra kb of files in the npm module.
tsconfig.json:
"declaration": true,
"declarationMap": true,
"sourceMap": true,
...
package.json (assuming typescript compiles src/ to dist/):
"files": [
"dist/*",
"src/*"
],
- shepherdjerred 3y agoIt makes me wonder why these are even configurable. These should all be emitted by default.