Hacker News new | ask | show | jobs
by rovingeye 303 days ago
https://github.com/nodejs/node/issues/57215

Not supporting type stripping in node_modules is unfortunate

2 comments

But... 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...

It was the first thing I tried and of course it didn't work.

It might finally be time to switch to Deno or Bun =(

I 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
I 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).

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.

Huh, turns out it's a real bug in node resolution: https://github.com/denoland/deno/issues/30444
I'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.)
> It might finally be time to switch to Deno or Bun =(

Bun has been great.

Deno... perhaps the less said, the better.

Bun has been awesome for me and my team fwiw
Build it.
I mean, you can just use a loader, as we've all been doing. It's already built, they just didn't implement it properly.
No, is the right call. TypeScript has breaking changes. It would need to be standardized first.
What? All this does is strip types