Skip to content

Improve output when running commands across the whole monorepo #988

Open

Description

@mcmire

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).

Activity

  1. BelfordZ commented on Nov 30, 2022

    @BelfordZ
    Contributor

    test output is very painful, agreed.

  2. self-assigned this
    on Dec 5, 2022
  3. mcmire commented on Dec 5, 2022

    @mcmire
    CollaboratorAuthor

    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.

  4. mcmire commented on Dec 5, 2022

    @mcmire
    CollaboratorAuthor

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions