0

I am trying to run the node server by ts-node-dev and restart on any any changes in specific files. It is restarting on any changes made to ts,js files however, it is not restarting on changes to graphql files. Any suggestions?

  "scripts": {
    "start": "tsnd --transpile-only --rs ./src/microservices/index.ts --watch--extionsions 
 ts,js,graphql"
  }
Hazem Alabiad
  • 1,032
  • 1
  • 11
  • 24
  • 1
    Hi, i think there's a typo in `--watch--extionsions`. But there's no --watch-extensions flag in ts-node-dev. You can give to the `--watch` flag the path where it needs to look at, i.e. : `...--watch .env, ../common/src, ../gql, .....` – MatteoPHRE Jan 17 '22 at 11:36
  • `ts-node-dev` can have the same flags as `ts-node` – Hazem Alabiad Jan 18 '22 at 08:53

0 Answers0