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

chore: enable mutating flat-options #2802

Closed
wants to merge 3 commits into from

Conversation

ruyadorno
Copy link
Collaborator

@ruyadorno ruyadorno commented Mar 1, 2021

This will allow for changing configs that are read by commands through
flatOptions.

⚠️ Based of #2795, land that first.

Relates to: #2765
Relates to: npm/rfcs#117

Instead of files randomly requiring the npm singleton,
we pass it where it needs to go so that tests don't need
to do so much require mocking everywhere
All output that anything wants to make now goes through
`npm.output()`.  This is an incremental change getting us
closer to where we want to be with testing.
@ruyadorno ruyadorno requested a review from a team as a code owner March 1, 2021 19:04
Copy link
Member

@wraithgar wraithgar left a comment

Choose a reason for hiding this comment

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

This is a nice small iterative change to get us closer to where we want to be.

@wraithgar
Copy link
Member

Tests fail here, not sure why but that obviously needs to be addressed.

@darcyclarke darcyclarke added Release 7.x work is associated with a specific npm 7 release release: next These items should be addressed in the next release labels Mar 1, 2021
This will allow for changing configs that are read by commands through
flatOptions.

Based of npm#2795, land that first.

Relates to: npm#2765
Relates to: npm/rfcs#117
@ruyadorno
Copy link
Collaborator Author

I'm going to hold off on merging this until we're more certain which direction we want to go with the related workspaces implementation 😊

@ruyadorno ruyadorno closed this Mar 4, 2021
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.

None yet

3 participants