News for hackers. Stuff that matters.
Re:TypeScript NPM Packages Done Right by fortunateregard on Sunday September 24, 2023 @08:29AM (#37632495)
Re:TypeScript NPM Packages Done Right by sedro on Sunday September 24, 2023 @12:36PM (#37634620)
This cheatsheet would have you publish dist/*.{js,d.ts}. Presumably you would use "files":["dist"] in package.json to exclude sources from being published.

The OP recommends to additionally package src/*.ts along with sourceMaps and declarationMaps.

What's actually the best practice here?

Re:TypeScript NPM Packages Done Right by antipotoad on Sunday September 24, 2023 @10:41PM (#37639128)
I poke around in node_modules with some regularity (often in combination with the debugger) and it’s always nice to find actual source files, not just source maps.