gajus/turbowatch

Question: How to configure a simple watcher to replace nodemon with turborepo

adriano-tirloni opened this issue · 0 comments

Hi, I have transitioned a JS project with 2 apps (nextjs, fastify) and a few packages (schemas, utils, etc..) to Turborepo with pnpm in order to use the internal packages link and improve DX.

This is a very simple setup since it doesn't have a build step, and the turborepo is working with internal packages dependencies pointing to source code, NextJS dev server hot reload when a internal package changes, but fastif with nodejs doesn't andI can't figure how to include turbowatch in the middle of it all so that when a internal package that the fastify server depends on is changed, node must restart.

I have been trying the recipes with Turborepo kitchen-sink example.
Would you mind pointing me in the right direction?