Skip to content

Tweak workspaces run doc to clarify gotcha with global scripts #6824

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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