npx nodemon -e ts,tsx server.ts

Category: Web App Development

npx nodemon -e ts,tsx server.ts

Watch TypeScript files and restart the server

Runs a TypeScript server through nodemon while watching ts and tsx extensions for changes. Nodemon itself does not compile TypeScript, so pair it with tsx or ts-node in the exec command. Use -x to override the command nodemon runs.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.