fastify-cli: npm run dev in typescript project, watch is not working

🐛 Bug Report

Changed Typescript files cannot be applied.

To Reproduce

Steps to reproduce the behavior:

  1. Use master branch to generate typescript project
  2. npm run dev
  3. change string in example.ts ( server auto restarted )
  4. /example response didn’t change.
  5. I have to ctrl+c to terminate npm run dev, run agin to make the change applied.

Expected behavior

/example response changed according to 3.'s change.

Your Environment

  • node version: 12
  • fastify version: 3.0.0-rc2
  • os: Mac

setup step: https://github.com/fastify/fastify-cli/issues/131#issuecomment-630192417

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 15 (9 by maintainers)

Commits related to this issue

Most upvoted comments

Ok. Just open a WIP PR and we will discuss on the best way to handle this.

Thanks, @alemagio! I was under the impression that your solution was just a hot-fix until a more permanent solution was found. But I’m happy to just stick with it, if that is what will eventually be merged anyways. 😄