4 ms·
The blog doesn't explain how to take advantage of isolated modules without using JSR, or how JSR transforms published packages. How would a project configure n
by seniorsassycat 2y ago
The blog doesn't explain how to take advantage of isolated modules without using JSR, or how JSR transforms published packages.
How would a project configure node and typescript to use a npm module that has exported .ts files?
- streptomycin 2y agoYou wouldn't, you would use JSR.
- crooked-v 2y agoI despise this recurring trend in the JS-adjacent world of "cutting edge" people making their published packages intentionally incompatible with what everyone else is doing.
- rezonant 2y agoWell, if they want no one to use their libraries, then fine. You would think that as a person publishing library code to a public registry, you would be incentivized to ensure your code is broadly usable. At least in general. I know this is in the context of JSR where this isn't an issue, but I suppose some people just want to just use a registry as a personal code repository. Id just hope they don't pollute the top level namespace in that case. Who am I kidding, sadly for NPM that ship sailed years ago :*-(