I have a monorepo with two apps:
- The web app (Next.js)
- The UI library (Tailwind, which uses Microbundle)
The only way I managed to make the web app see the changes I make to the UI library is by:
- Making the changes
- Rebuild the UI library (in this case, I'm using
microbundle watch
) - Manually restart the Next.js server
My question is: how can I automatically restart the Next.js server every time the files within ui/dist
are recreated (because they are rebuilt every time a change is made)?