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

fix some flat options #3684

Merged
merged 1 commit into from Aug 26, 2021
Merged

fix some flat options #3684

merged 1 commit into from Aug 26, 2021

Conversation

nlf
Copy link
Contributor

@nlf nlf commented Aug 24, 2021

This corrects two things,

--global implies --location=global and --package-lock-only implies --package-lock

it also introduces a new sandbox runner for testing purposes. it's not the prettiest thing i've ever written, but it seems to do the job pretty nicely and doesn't require keeping track of wild shenanigans everywhere.

References

Fixes #2747
Fixes #3572

@nlf nlf requested a review from a team as a code owner August 24, 2021 21:09
@@ -121,7 +121,7 @@ class Config extends BaseCommand {
break
case 'list':
case 'ls':
await (this.npm.config.get('json') ? this.listJson() : this.list())
await (this.npm.flatOptions.json ? this.listJson() : this.list())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We really really really need to answer the "what do derived config values look like" question.

@darcyclarke darcyclarke added Release 7.x work is associated with a specific npm 7 release semver:patch semver patch level for changes labels Aug 26, 2021
This corrects two things,

`--global` implies `--location=global` and `--package-lock-only` implies
`--package-lock`

It also introduces a new sandbox runner for testing purposes. it's not
the prettiest thing i've ever written, but it seems to do the job pretty
nicely and doesn't require keeping track of wild shenanigans everywhere.

Fixes #2747
Fixes #3572

PR-URL: #3684
Credit: @nlf
Close: #3684
Reviewed-by: @wraithgar
@wraithgar wraithgar changed the base branch from latest to release-next August 26, 2021 17:00
@wraithgar wraithgar merged commit 4e52217 into release-next Aug 26, 2021
@wraithgar wraithgar deleted the nlf/fix-some-flat-options branch August 26, 2021 17:01
@fritzy fritzy mentioned this pull request Aug 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Release 7.x work is associated with a specific npm 7 release semver:patch semver patch level for changes
Projects
None yet
3 participants