yarnpkg / berry

📦🐈 Active development trunk for Yarn ⚒
https://yarnpkg.com
BSD 2-Clause "Simplified" License
7.37k stars 1.1k forks source link

[Feature] Shorthands for yarn workspace(s) CLI commands #5685

Open JosXa opened 1 year ago

JosXa commented 1 year ago

Describe the user story

As a dev, I'm really tired of typing out "yarn workspace @mylib/mypackage run xyz" in my monorepo so often, and am looking for a way to reduce the effort. It also makes the NPM scripts longer than they could otherwise be.

Describe the solution you'd like

Introduce shortcuts:

yarn workspace ... == yarn ws ... yarn workspaces ... == yarn wss ...

Describe the drawbacks of your solution

We might introduce some ambiguity in docs and on sites like stackoverflow where it isn't clear what the shortcuts stand for.

kopax commented 2 months ago

I just google-d yarn workspace shorthand and sadly find this