5 ms·
https://github.com/nodejs/node/issues/57215 https://github.com/nodejs/node/issues/57215 Not supporting type stripping in node_modules is unfortunate
by rovingeye 1y ago
https://github.com/nodejs/node/issues/57215 https://github.com/nodejs/node/issues/57215
Not supporting type stripping in node_modules is unfortunate
- hjohoji 1y ago[dead]
- hjohoji 1y ago[dead]
- quectophoton 1y agoBut... that's like half the reason why I wanted this feature... Writing a library in TypeScript (with typechecks in CI/CD as devDependencies) and just importing it directly from Node.js...
- rovingeye 1y agoIt was the first thing I tried and of course it didn't work. It might finally be time to switch to Deno or Bun =(
- chamomeal 1y agoI switched to deno for new projects ~1 year ago and it’s only been joy. There’s a shockingly small amount of friction to switch over, and there are so so many benefits
- throwanem 1y agoI'm glad you've said this. I have a project at nearly a perfect point to try out that cutover. Not that it isn't nice to understand the circa 2018-2022 TS stack, but it sure would be nice not to have to. (Our ancestors had the same discussions about cfront(1). Everything old is new again.)
- steve_adams_86 1y agoI have only one issue I've encountered with Deno that mattered (so to speak) and it's probably my fault. I actually created an issue for it (https://github.com/denoland/deno/issues/30433 https://github.com/denoland/deno/issues/30433). My project config is weird (slightly more sophisticated that my repro), so, it's probably on me. Otherwise I absolutely love Deno. It makes TypeScript simple and joyful. It's the simplicity this language/tooling ecosystems badly needs in my opinion. Sometimes I feel like it makes TypeScript feel a bit more like working with Go; you can just throw a main.ts in there and build an excellent CLI from it in minutes.
- steve_adams_86 1y agoHuh, turns out it's a real bug in node resolution: https://github.com/denoland/deno/issues/30444 https://github.com/denoland/deno/issues/30444
- agrippanux 1y agoBun has been awesome for me and my team fwiw
- preommr 1y ago> It might finally be time to switch to Deno or Bun =( Bun has been great. Deno... perhaps the less said, the better.
- epolanski 1y agoBuild it.
- rovingeye 1y agoI mean, you can just use a loader, as we've all been doing. It's already built, they just didn't implement it properly.
- spankalee 1y agoNo, is the right call. TypeScript has breaking changes. It would need to be standardized first.
- rovingeye 1y agoWhat? All this does is strip types