Skip to content

Improves the output of "yarn config"#5713

Merged
arcanis merged 16 commits intomasterfrom
mael/config-display
Sep 28, 2023
Merged

Improves the output of "yarn config"#5713
arcanis merged 16 commits intomasterfrom
mael/config-display

Conversation

@arcanis
Copy link
Member

@arcanis arcanis commented Sep 1, 2023

What's the problem this PR addresses?

It's a little difficult to ask people to check specific values of their configuration at the moment. They need to run yarn config get <name> to see the value, or yarn config --why | grep <name>, but that isn't very visible.

How did you fix it?

It's a bit of an experiment to try to change the output from:

image

To the new tree display:

image

To offset the lack of compaction, the command now also accepts a list of setting names on the command line, so you can write the following:

yarn config nodeLinker

Or even multiple parameters:

yarn config supportedArchitectures enableGlobalCache
image

Checklist

  • I have set the packages that need to be released for my changes to be effective.
  • I will check that all automated PR checks pass before the PR gets reviewed.

@arcanis arcanis force-pushed the mael/config-display branch from 637a6d9 to fa9d164 Compare September 26, 2023 10:07
@arcanis arcanis merged commit 48327b2 into master Sep 28, 2023
@arcanis arcanis deleted the mael/config-display branch September 28, 2023 13:49
arcanis added a commit that referenced this pull request Aug 20, 2025
## What's the problem this PR addresses?

The `-v` flag for `yarn config` has been deprecated since #5713, but two
error messages still reference it.

...

## How did you fix it?

I edited the error message text.

...

## Checklist

<!--- Don't worry if you miss something, chores are automatically
tested. -->
<!--- This checklist exists to help you remember doing the chores when
you submit a PR. -->
<!--- Put an `x` in all the boxes that apply. -->
- [x] I have read the [Contributing
Guide](https://yarnpkg.com/advanced/contributing).

<!-- See
https://yarnpkg.com/advanced/contributing#preparing-your-pr-to-be-released
for more details. -->
<!-- Check with `yarn version check` and fix with `yarn version check
-i` -->
- [x] I have set the packages that need to be released for my changes to
be effective.

<!-- The "Testing chores" workflow validates that your PR follows our
guidelines. -->
<!-- If it doesn't pass, click on it to see details as to what your PR
might be missing. -->
- [x] I will check that all automated PR checks pass before the PR gets
reviewed.

---------

Co-authored-by: Maël Nison <nison.mael@gmail.com>
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

Successfully merging this pull request may close these issues.

1 participant