What is the best practice of deploying NodeJS server written in TypeScript to production?
I want to avoid having 3 files (ts, js, map) for every script in my git repository.
I could use grunt/gulp to create "dist" directory and copy all the compiled files there, but then I would have them in my repo anyways. I could create separate repo just for the compiled code, but thats not ideal as well I think.
Also, when I run node app.ts without the js or the map existing, it actually starts up everything fine. So are the compiled files even needed for node server?
Note: I am dont have any compilation script/task in place, my IDE is compiling the ts files automatically for me.