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

yarn publish errors are opaque #479

Closed
OliverJAsh opened this issue Dec 17, 2019 · 1 comment
Closed

yarn publish errors are opaque #479

OliverJAsh opened this issue Dec 17, 2019 · 1 comment

Comments

@OliverJAsh
Copy link

Description

yarn publish errors are opaque.

Steps to reproduce

  1. Define a prepublishOnly script that always fails
  2. Run np (in Yarn mode)

Expected behavior

It should be clear why yarn publish failed, i.e. what error did prepublishOnly result in?

Actual behaviour

✖ Error publishing package:
Command failed with exit code 2: yarn publish

There's no mention of why exactly yarn publish failed.

Environment

np - 5.2.1
Node.js - 12.8.1
npm - 6.10.2
Git - 2.23.0
OS - macOS 10.15.2

@sindresorhus
Copy link
Owner

This should be fixed by 818ff4b#diff-b9cfc7f2cdf78a7f4b91a753d10865a2R40. Older execa versions did not include stdout/stderr in error messages.

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

No branches or pull requests

2 participants