Hacker News new | ask | show | jobs
by Omerd6 697 days ago
The legendary Ryan dahl is actually working on solving the exact problem you described by creating a new package registry called JSR.

Essentially what it does is allow you to upload your typescript code without a build step so when other devs install it they can see the source code of the module in it's original typescript instead of transpiled JavaScript.

2 comments

That's really cool. One of the benefits of the JS ecosystem is the ability to step through code and crack open your dependencies. Not sure if this would directly make this possible when running your projects/tests, but it at least sounds like a step in that direction.
it must install compiled and uncompiled versions? Otherwise node (without the above flag) would throw errors when it encounters types in node_modules
I just checked and you are correct, in node it only installs the compiled version.

Apparently you can only view the uncompiled source code in deno since it natively supports typescript.

My bad

No worries! I was curious how it worked on node. Thanks!