microsoft / TypeScript

TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
https://www.typescriptlang.org
Apache License 2.0
100.2k stars 12.38k forks source link

Design Meeting Notes, 8/20/2024 #59703

Open DanielRosenwasser opened 3 weeks ago

DanielRosenwasser commented 3 weeks ago

Reconsidering a flag to rewrite .ts to .js in emit in light of TS support in Node.js

https://github.com/microsoft/TypeScript/issues/59597#issuecomment-2287466184

andrewbranch commented 2 weeks ago

We probably should look at if JSR does the same transforms that we're looking to do.

From https://jsr.io/docs/publishing-packages#jsr-package-rules, it looks like JSR doesn’t support publishing code that references itself with package.json "imports" or self-name imports. I think files within each package have to reference each other with relative imports. @lucacasonato is that right?

lucacasonato commented 2 weeks ago

Currently yes. We are currently discussing whether it is useful to allow this though.