4 ms·
Compile the packages to JavaScript before publishing. We absolutely should but be publishing TypeScript to npm.
by spankalee 1y ago
Compile the packages to JavaScript before publishing. We absolutely should but be publishing TypeScript to npm.
- rovingeye 1y agoI 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
- paradite 1y agoJSR does that? Now that might be a good reason to move my packages over to get rid of tsup.
- cyberax 1y agoAs an additional compat dist? Maybe. Otherwise, just leave TS as-is. It simplifies debugging and would allow things like static Hermes to work.