Skip to content

Conversation

@wraithgar
Copy link
Member

@wraithgar wraithgar commented Mar 17, 2021

Iterative change moving us towards a more unified config.
No longer pulling config from flatOptions where we don't have to.

This also moves our tests closer to using a real npm instance by having an interim mockNpm that acts like npm where we need it to.

Closes npm/statusboard#280

@wraithgar wraithgar requested a review from a team as a code owner March 17, 2021 20:53
@wraithgar wraithgar force-pushed the gar/flatoptions branch 2 times, most recently from 754fe69 to 30b8a07 Compare March 17, 2021 21:08
const { force, silent, loglevel } = opts
const force = this.npm.config.get('force')
const silent = this.npm.config.get('silent')
const loglevel = this.npm.config.get('loglevel')
Copy link
Member Author

Choose a reason for hiding this comment

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

This was a bug, loglevel is not in flatOptions

isaacs
isaacs previously requested changes Mar 17, 2021
Copy link
Contributor

@isaacs isaacs left a comment

Choose a reason for hiding this comment

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

Some gotchas found, but +1 on the change overall.

@wraithgar wraithgar requested a review from isaacs March 18, 2021 15:38
@darcyclarke darcyclarke added the Release 7.x work is associated with a specific npm 7 release label Mar 18, 2021
@ruyadorno ruyadorno dismissed isaacs’s stale review March 18, 2021 17:26

suggestions adressed

@ruyadorno ruyadorno added release: next These items should be addressed in the next release semver:patch semver patch level for changes labels Mar 18, 2021
Iterative change moving us towards a more unified config.
No longer pulling config from flatOptions where we don't have to.

PR-URL: #2892
Credit: @wraithgar
Close: #2892
Reviewed-by: @ruyadorno
@ruyadorno ruyadorno changed the base branch from latest to release-next March 18, 2021 17:28
@ruyadorno ruyadorno merged commit 889b06d into release-next Mar 18, 2021
isaacs pushed a commit that referenced this pull request Mar 18, 2021
Iterative change moving us towards a more unified config.
No longer pulling config from flatOptions where we don't have to.

PR-URL: #2892
Credit: @wraithgar
Close: #2892
Reviewed-by: @ruyadorno
isaacs pushed a commit that referenced this pull request Mar 18, 2021
Iterative change moving us towards a more unified config.
No longer pulling config from flatOptions where we don't have to.

PR-URL: #2892
Credit: @wraithgar
Close: #2892
Reviewed-by: @ruyadorno
@wraithgar wraithgar deleted the gar/flatoptions branch November 2, 2021 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release: next These items should be addressed in the next release Release 7.x work is associated with a specific npm 7 release semver:patch semver patch level for changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor(flatOptions): stop using flatOptions internally

5 participants