Skip to content

Conversation

dobesv
Copy link

@dobesv dobesv commented Jun 17, 2025

What's the problem this PR addresses?

I was very confused when yarn workspaces foreach run xxx:yyy was running in every workspace, even ones that do not define a script with that name. I imagine others may be similarly confused as the docs currently are a bit ambiguous about this point. Also many users are likely not even aware of the concept of "global scripts" using ":".

How did you fix it?

I added a bit more to the docs to clarify that yarn workspaces foreach run xxx:yyy will run in every workspace, even ones that do not define a script by that name.

@dobesv dobesv force-pushed the workspaces-foreach-docs-tweak branch from a596f6c to 37a00ae Compare June 17, 2025 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant