• lobut@lemmy.ca
    link
    fedilink
    arrow-up
    2
    ·
    1 day ago

    Yeah, absolutely agreed.

    Btw, you probably already know this, but if you don’t. The later versions of Node can run typescript natively. By “run”, I mean, it can run a subset of the language, if your project indirectly or indirectly references a file that has “decorators” or something like that, then you’ll need to use another compiler.

    ts-node or tsx are runners that I use typically if I just want to “run” something. They’re basically zero config runners and I can debug with them with VS Code.

    • marlowe221@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      23 hours ago

      Yeah, I’ve read about the development of the ability to run TS natively in Node. It sounds really promising!

      I’m not familiar with ts-node though. I’ll have to check that out.