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 publish --json does not report error #5710

Closed
unional opened this issue Nov 28, 2022 · 0 comments · Fixed by #5718
Closed

pnpm publish --json does not report error #5710

unional opened this issue Nov 28, 2022 · 0 comments · Fixed by #5718
Milestone

Comments

@unional
Copy link

unional commented Nov 28, 2022

pnpm version:

7.17.1

Code to reproduce the issue:

It's about publish so hard to create a repo.

The basic idea is that when there are error, e.g.:

pnpm publish

 ERR_PNPM_CANNOT_RESOLVE_WORKSPACE_PROTOCOL  Cannot resolve workspace protocol of dependency "@mocktomata/plugin-fixture-esm-b" because this dependency is not installed. Try running "pnpm install".

Running it with pnpm publish --json does not report such error.
It only returns code = 1

Expected behavior:

The json should contains the error causing the failure

Actual behavior:

No json returned

Additional information:

  • node -v prints: 16.18.0
  • Windows, macOS, or Linux?: Windows and Linux

This is the root cause of: changesets/changesets#1003

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.

2 participants