Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Compile the packages to JavaScript before publishing. We absolutely should but be publishing TypeScript to npm.




I can understand the argument, since npm has no solution for TypeScript packages, unlike JSR:

"You publish TypeScript source, and JSR handles generating API docs, .d.ts files, and transpiling your code for cross-runtime compatibility."

Still would have been nice to have this for private packages.

This makes Deno/Bun much more attractive alternatives


JSR does that? Now that might be a good reason to move my packages over to get rid of tsup.

As an additional compat dist? Maybe. Otherwise, just leave TS as-is. It simplifies debugging and would allow things like static Hermes to work.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: