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

pnpm run --stream does not reports with dir prefix if there is only one package filtered #4702

Closed
kenrick95 opened this issue May 9, 2022 · 0 comments · Fixed by #4703
Closed

Comments

@kenrick95
Copy link
Member

kenrick95 commented May 9, 2022

pnpm version: 6.32.11

Note: also happened in v7.0.1

Code to reproduce the issue:

See https://github.com/kenrick95/pnpm-stream-issue-repro

Summary:

When there is only 1 package passed at --filter, even when we specify --stream, the result is not reported with dir prefix

pnpm --stream --filter alfa lint

Expected behavior:

Scope: 1 of 3 workspace projects
packages/alfa lint$ echo 'ok'
packages/alfa lint: ok
packages/alfa lint: Done

Actual behavior:


> alfa@1.0.0 lint /path/to/repo/packages/alfa
> echo 'ok'

ok

Additional information:

  • node -v prints: v14.19.0
  • Windows, macOS, or Linux?: macOS 12.3.1

As comparison, in Lerna, running with --stream will always report with prefix.

lerna run lint --stream --scope alfa
lerna notice cli v4.0.0
lerna notice filter including "alfa"
lerna info filter [ 'alfa' ]
lerna info Executing command in 1 package: "npm run lint"
alfa: > alfa@1.0.0 lint
alfa: > echo 'ok'
alfa: ok
lerna success run Ran npm script 'lint' in 1 package in 0.3s:
lerna success - alfa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant