You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running yarn init causes Yarn to print a bunch of undefined fields (instead of only the relevant ones). Additionally, the output isn't colored despite using util.inspect.
To Reproduce
Clone the repository
Run yarn build:cli
Run cd $(mktemp -d)
Run node ~/path/to/berry/packages/yarnpkg-cli/bundles/yarn.js init
Screenshots
Additional context
There are various ways to fix this issue, but the main way I see would be to delete the empty fields in Manifest#export instead of setting them to undefined. It's usually not a problem because JSON.stringify just ignores undefined, but util.inspect doesn't.
Describe the bug
Running
yarn init
causes Yarn to print a bunch of undefined fields (instead of only the relevant ones). Additionally, the output isn't colored despite usingutil.inspect
.To Reproduce
yarn build:cli
cd $(mktemp -d)
node ~/path/to/berry/packages/yarnpkg-cli/bundles/yarn.js init
Screenshots
Additional context
There are various ways to fix this issue, but the main way I see would be to delete the empty fields in
Manifest#export
instead of setting them toundefined
. It's usually not a problem becauseJSON.stringify
just ignoresundefined
, bututil.inspect
doesn't.Our contribution guide is there to help!
The text was updated successfully, but these errors were encountered: