How to watch and reload ts-node when TypeScript files change

后端 未结 11 1545
梦如初夏
梦如初夏 2020-11-30 17:00

I\'m trying to run a dev server with TypeScript and an Angular application without transpiling ts files every time. I found that I can do the running with ts-node

11条回答
  •  猫巷女王i
    2020-11-30 17:27

    I've dumped nodemon and ts-node in favor of a much better alternative, ts-node-dev https://github.com/whitecolor/ts-node-dev

    Just run ts-node-dev src/index.ts

提交回复
热议问题