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

Refactor NpmLockfileUpdater #3112

Merged
merged 1 commit into from
Feb 10, 2021
Merged

Conversation

feelepxyz
Copy link
Contributor

Extracting a refactor from
#3106

Initialize the lockfile updater with a lockfile being updated removing
the need to pass around the lockfile everywhere.

A few spec changes have snuck in from the above pr but these should be
cosmetic as no fuctionality has changed.

@feelepxyz feelepxyz requested a review from a team as a code owner February 10, 2021 11:53
@feelepxyz feelepxyz requested a review from jurre February 10, 2021 11:53
@@ -1,11 +1,11 @@
{
"name": "{{ name }}",
"name": "project-name",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is more realistic example where the lockfile has a "valid" generated name by some build step, we make sure to restore this name, not the invalid name in the package.json, the code to restore this hasn't changed

Extracting a refactor from
#3106

Initialize the lockfile updater with a lockfile being updated removing
the need to pass around the lockfile everywhere.

A few spec changes have snuck in from the above pr but these should be
cosmetic as no fuctionality has changed.
@feelepxyz feelepxyz force-pushed the feelepxyz/refactor-npm-lockfile-updater branch from 0cd7ae2 to 448fbce Compare February 10, 2021 11:55
Copy link
Member

@jurre jurre left a comment

Choose a reason for hiding this comment

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

This looks great, thanks for pulling it out!

@feelepxyz feelepxyz merged commit fe2411b into main Feb 10, 2021
@feelepxyz feelepxyz deleted the feelepxyz/refactor-npm-lockfile-updater branch February 10, 2021 12:26
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.

2 participants