2 ms·
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
by Omerd6 2y 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.
- sam_perez 2y agoThat'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.
- meowtimemania 2y agoit must install compiled and uncompiled versions? Otherwise node (without the above flag) would throw errors when it encounters types in node_modules
- Omerd6 2y agoI 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
- meowtimemania 2y agoNo worries! I was curious how it worked on node. Thanks!