Compiled package in Turborepo
Unanswered
Satin Angora posted this in #help-forum
Satin AngoraOP
Just wondering what is the best way to watch for changes when having compiled package?
Is there some faster alternative then tsc --watch?
How do you do it in your projects?
Is there some faster alternative then tsc --watch?
How do you do it in your projects?
11 Replies
Satin AngoraOP
@Asian black bear sorry for pinging you, but I noticed you did a great amount of work of dealing with these type of issues. Can you give me few tips and best practices when it comes to this, I would appreciate it so much! ❤️
Satin AngoraOP
Anyyyoneeee pleaseeee??
Yes
For any package that needs to be watched during development (usually all, lol)
You set the “dev” script in that package, or whatever your dev script is for all of your other apps
To just “tsc” with no watch
Then in your monorepo root package JSON
You run all of the tasks with turborepo’s built in watch command
“turborepo watch dev”
Sorry - I’m on the phone so my examples aren’t great, but the project “create-t3-turbo” on GitHub uses this pattern, as an example
And a last note, make sure you have git-lfs set up as well, you can check using the turbo scan command