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

prefix "yarn workspaces run" (v1.10.0) output with package names #6389

Open
donaldpipowitch opened this issue Sep 14, 2018 · 5 comments · May be fixed by #6932
Open

prefix "yarn workspaces run" (v1.10.0) output with package names #6389

donaldpipowitch opened this issue Sep 14, 2018 · 5 comments · May be fixed by #6932
Assignees
Labels

Comments

@donaldpipowitch
Copy link
Contributor

Do you want to request a feature or report a bug?

feature

What is the current behavior?

$ yarn workspaces run build
yarn workspaces v1.10.0
yarn run v1.10.0
$ tsc -p src
✨  Done in 1.49s.
yarn run v1.10.0
$ tsc -p src
✨  Done in 1.21s.
yarn run v1.10.0
$ tsc -p src
✨  Done in 1.41s.
✨  Done in 5.26s.

What is the expected behavior?

Similar to wsrun --serial:

$ yarn build
yarn run v1.10.0
$ wsrun build --serial
package-a
$ tsc -p src
package-b
$ tsc -p src
package-c
$ tsc -p src
✨  Done in 4.86s.

(Note, in the terminal package-a/b/c are also written bold to make the log even nicer to read.)

Please mention your node.js, yarn and operating system version.

  • Node 8 LTS
  • yarn v1.10.0
  • macOS
@ghost ghost assigned torifat Sep 14, 2018
@ghost ghost added the triaged label Sep 14, 2018
@alexindigo
Copy link

Another option would be similar to how Jenkins does it:

$ yarn workspaces run build
yarn workspaces v1.10.0
[package-a] yarn run v1.10.0
[package-a] $ tsc -p src
[package-a] ✨  Done in 1.49s.
[package-b] yarn run v1.10.0
[package-b] $ tsc -p src
[package-b] ✨  Done in 1.21s.
[package-c] yarn run v1.10.0
[package-c] $ tsc -p src
[package-c] ✨  Done in 1.41s.
✨  Done in 5.26s.

Also this format will be more useful, when yarn allow running workspace scripts in parallel (wink, wink, it was in the proposal).

@ianstormtaylor
Copy link

I think borrowing from Lerna with its color-coding would be nice:

image

@zkochan
Copy link

zkochan commented Dec 19, 2018

We have a similar discussion in pnpm: pnpm/pnpm#1440

@peterlebrun
Copy link

Hi - I believe I have addressed this in the following PR: #6932

Thanks!

@grrowl
Copy link

grrowl commented Jul 29, 2020

If you're using Yarn Berry, the command is yarn workspaces foreach and pass the --verbose argument to prefix the output with the package's name

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

Successfully merging a pull request may close this issue.

7 participants