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:
- Use master branch to generate typescript project
npm run dev
- change string in example.ts ( server auto restarted )
- /example response didn’t change.
- 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
- feat: start can now watch ts files (#246) — committed to alemagio/fastify-cli by alemagio 4 years ago
- feat: start can now watch ts files (#246) — committed to alemagio/fastify-cli by alemagio 4 years ago
- feat: start can now watch ts files (#246) (#276) * feat: start can now watch ts files (#246) * test: created promisified sget and minor changes * test: start tests are now executable from any l... — committed to fastify/fastify-cli by alemagio 4 years ago
- Revert "feat: start can now watch ts files (#246) (#276)" This reverts commit b6935b4602bbc24f421967e2aecb4855e8df0537. — committed to fastify/fastify-cli by mcollina 4 years ago
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. 😄