yw
Update!
Note: This script is only compatible with yarn classic (e.g. v1), I have since published an updated version that works with yarn berry (v2 and v3 releases) in my blog post!
Almost a year or more ago I stumbled across this super useful bash function that makes it incredibly easy to run scripts across a -based monorepo. Since then I haven't looked back, and have been slowly converting the rest of my team to adopt the same function in their local workflows as well!
Script:
yw() {
yarn workspace $(yarn --json workspaces info | jq '.data' -r | jq