Hi there,
I am kinda new to the whole nodejs backend thing. I was more into Spring Boot the last couple of years. Because of that I was pretty happy to found nestjs......nice piece of software! 🙂
Background
Currently my team evaluates if it nestjs is something we could use. I started a very simple project to find out if I can serve a good developer experience with it. Basically my project is a monorepo with a very simple package module1 and the nestjs app uses module1 in the package.json.
Problem
When I now run the dev scripts (using turbo repo) and change internals in module1 (for example change a string in the private function's list) module1 recompiles but nest-app doesn't pick up the changes. Also it doesn't do the restart and still serves the old value when hitting the endpoint.
If I change the string AND touch the exports of the file (for example export a new const) it catches up the changes, restarts and serves the new value.
To drill down the problem I tried the exact think with a monorepo using typescript only script (tsc -b -w) and with is it worked.
I put everthing on github: https://github.com/Dragoopai/ts-monorepo
I would really appreciate your help! In the best case I hope I just misconfigured something.
Thanks in advance
Contribute to Dragoopai/ts-monorepo development by creating an account on GitHub.