ojkelly / yarn.build

Build 🛠 and Bundle 📦 your local workspaces. Like Bazel, Buck, Pants and Please but for Yarn Berry. Build any language, mix javascript, typescript, golang and more in one polyglot repo. Ship your bundles to AWS Lambda, Docker, or any nodejs runtime.
https://yarn.BUILD
MIT License
324 stars 28 forks source link

Focus mode like `yarn workspaces focus` #209

Open leshkovichpvl opened 2 years ago

leshkovichpvl commented 2 years ago

I have a problem.

I have a lot of workspaces in my monorep. But server releases require a different set of workspaces. It would be nice to be able to run yarn build for a different set of workspaces, as it works for yarn workspaces focus.

Any ideas?

ojkelly commented 2 years ago

Can you expand a bit more on the specific behaviour you're after?

If you run yarn build outside of a workspace it will build everything.

If you run yarn build inside a workspace it will build just that workspace and anything it depends on.