tweak nodemon + ts-node for better DX
antonk52 opened this issue · 1 comments
antonk52 commented
In the nodejs example it is suggested to use a script
nodemon --watch 'src/**/*.ts' --exec 'ts-node' src/index.ts
which is ok when starting a project, but as the project grows it really starts to show. I was wondering if there is a thought behind it? Why not use ts-node-dev
which handles file changes for you or a tweaked usage of the script in the example such as tsc --watch & nodemon dist/index.js
? Latter one works faster in my experience. I am happy to do a PR for this but I wanted to ask about it beforehand. Thanks!
basarat commented
I love ts-node-dev : https://www.youtube.com/watch?v=Hi-ShZ5ShkE 🌹
Post a PR and @basarat me so it comes in my inbox ❤️