Skip to content
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

Improve output when running commands across the whole monorepo #988

Open
mcmire opened this issue Nov 23, 2022 · 3 comments
Open

Improve output when running commands across the whole monorepo #988

mcmire opened this issue Nov 23, 2022 · 3 comments

Comments

@mcmire
Copy link
Contributor

mcmire commented Nov 23, 2022

Because yarn workspaces foreach shows output from many commands, if you run e.g. yarn test and there is one package whose tests fails, you have to painstakingly scroll up and rake over the output with a fine-toothed comb. We should make this output easier to read (especially for tests).

@BelfordZ
Copy link
Contributor

test output is very painful, agreed.

@mcmire mcmire self-assigned this Dec 5, 2022
@mcmire
Copy link
Contributor Author

mcmire commented Dec 5, 2022

I looked through the Yarn repo to see if anyone has run into this problem and is talking about it, but I didn't find anything. I think we may have to implement this ourselves. Perhaps for all of the scripts we want to run with yarn workspaces foreach, we write the exit code and/or output to a file and then parse that file after the foreach command is done.

@mcmire
Copy link
Contributor Author

mcmire commented Dec 5, 2022

There's also this project which is very cool, although it only works for yarn build. We may find some interesting ideas here though. https://github.com/ojkelly/yarn.build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants