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(npm): split some resolution from installation #27595

Merged

Conversation

dsherret
Copy link
Member

@dsherret dsherret commented Jan 8, 2025

This splits away some npm resolution code from installation. It will allow for more easily extracting out resolution code in the future.

Copy link
Member Author

@dsherret dsherret Jan 8, 2025

Choose a reason for hiding this comment

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

This looks like a lot of changes, but I only re-arranged things. The function bodies of everything are basically exactly the same as before except for some construction code and some new high level structs.

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 trait is new.

Copy link
Contributor

@marvinhagemeister marvinhagemeister left a comment

Choose a reason for hiding this comment

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

+1 I like the split a lot. Makes it easier to follow along 👍

@dsherret dsherret enabled auto-merge (squash) January 8, 2025 23:10
@dsherret dsherret merged commit ce0968e into denoland:main Jan 8, 2025
17 checks passed
@dsherret dsherret deleted the refactor_npm_split_resolution_installation branch January 8, 2025 23:46
dsherret added a commit that referenced this pull request Jan 9, 2025
This splits away some npm resolution code from installation. It will
allow for more easily extracting out resolution code in the future.
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