After reading up on updated discussions regarding HMR in monorepo and how to handle it.
It seems Turbo has updated their documentation. In this PR I implemented watchers using Turbo's advised way.
Had to create a custom script to solve this as Turbo doesnt support watch mode natively (yet). No changes to syntax when running commands just type pnpm watch workorder and it will watch workorder and all of its dependencies.
~I have tested it for handover and it works only caveat is we have to change the way we use commands like serve. Previously we applied a filter and could write something like handover but now we have to write *handover* and potentially shared~
After reading up on updated discussions regarding HMR in monorepo and how to handle it.
It seems Turbo has updated their documentation. In this PR I implemented watchers using Turbo's advised way.
Had to create a custom script to solve this as Turbo doesnt support watch mode natively (yet). No changes to syntax when running commands just type
pnpm watch workorder
and it will watch workorder and all of its dependencies.~I have tested it for handover and it works only caveat is we have to change the way we use commands like serve. Previously we applied a filter and could write something like
handover
but now we have to write*handover*
and potentially shared~