Quramy / lerna-yarn-workspaces-example

How to build TypeScript mono-repo project with yarn and lerna
MIT License
898 stars 94 forks source link

Build & watch all packages? #9

Closed kachkaev closed 6 years ago

kachkaev commented 6 years ago

Hi @Quramy! 👋

I'm curious how to tsc --watch all packages in parallel with one command? This can be useful if, say, my packages/x-cli needs to be linked and tested externally before everything is released. I'd like to be able to change packages/x-core and see the difference propagated to x-cli when I use it. Of course, there can be more than two packages in a monorepo, which makes it harder to run tsc -w in all subfolders one by one.

Quramy commented 6 years ago

Use “tsc -b”.

I’ve updated README and wrote this.