DEV Community

Discussion on: It's time for Typescript Native

Collapse
 
jochemstoel profile image
Jochem Stoel

I would like to take a slight detour and say that you can create a TypeScript native executable runtime thingy yourself with node.

Initialize a Node application, install the ts-node package in your application folder (not global) and let your main script call the dist/bin.js script of ts-node.

Then build the app to an executable for your desired platform.

What you end up with is a typescript.exe that behaves like Node but speaks TypeScript. Do not pass arguments to get a typescript REPL, otherwise run the file.