DEV Community

Discussion on: How to setup a Node.js API with TypeScript in 2025

Collapse
 
mindplay profile image
Rasmus Schultz

so you actually run tsx in production?

is that a good idea?

Collapse
 
codeinitdev profile image
CodeInit

No, you should have a build command. The start command should be used only for dev. But that a very good point! Thanks for your comment.

Collapse
 
gabrielmodog profile image
Gabriel Tavares

tsx does not do any type check in your code, you can build using tsc - is included in the typescript package. Thinks that tsx is only for execution in the dev envoriment.