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

后端 未结 11 1537
梦如初夏
梦如初夏 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条回答
  •  孤独总比滥情好
    2020-11-30 17:27

    Specifically for this issue I've created the tsc-watch library. you can find it on npm.

    Obvious use case would be:

    tsc-watch server.ts --outDir ./dist --onSuccess "node ./dist/server.js"

提交回复
热议问题