DEV Community

Discussion on: How To Make A Typescript + NodeJS Express Project with eslint, EJS and Restart On Typescript Server Changes

Collapse
 
attkinsonjakob profile image
Jakob Attkinson

ts-node-dev doesn't transpile, does it? At least in my case, if I want to have the dist/build folder, I do need to manually run tsc

Thread Thread
 
nyctonio profile image
Ritesh Kumar

No, actually It does not transpile it automatically I will recommend you to create different scripts for development and production
"start:dev": "ts-node-dev src/app.ts",
"start": "tsc && node dist/app.js"

Thread Thread
 
attkinsonjakob profile image
Jakob Attkinson

Thank you!