When publishing on jsr.io, you upload the TypeScript, and if using Deno, you also download TypeScript (with import statements rewritten.) Having nearly the original source code is better for debugging.

Deno doesn’t type-check external dependencies unless you ask.

With the exports rewritten? Maybe we should have a export of “ts” like we have “types” instead?

Not sure what you mean, but to expand on what I wrote, JSR rewrites the import statements to include file extensions and full version numbers for package dependencies, so that the imports can be resolved without looking for them in multiple places.

There's a way to download JSR packages and use them with npm too. I don't know what it does in that case.

It’s too bad we didn’t start out with Deno