-
Notifications
You must be signed in to change notification settings - Fork 314
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
Make Npm
separate from Yarn
#9393
Conversation
be80da6
to
52ff169
Compare
The extraction of issues applies only to `Npm`, but not to `Yarn`. Extract it to a function and place it in `Npm` to reduce the diff of an upcoming change. Signed-off-by: Frank Viernau <frank_viernau@epam.com>
Prepare for removing the inheritance between these two. Signed-off-by: Frank Viernau <frank_viernau@epam.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #9393 +/- ##
============================================
+ Coverage 67.91% 68.08% +0.16%
- Complexity 1262 1279 +17
============================================
Files 244 246 +2
Lines 8724 8814 +90
Branches 909 920 +11
============================================
+ Hits 5925 6001 +76
- Misses 2422 2428 +6
- Partials 377 385 +8
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Analog to 0eb1eea, remove the inheritance between the two managers and re-write large parts of `Npm` to extract all needed information solely based on the output of the `npm` CLI command, instead of relying on the file hierarchy under the `node_modules` directory. This reduces complexity and makes the implementation(s) easy to understand, maintain and change in isolation. Note: The handling of the `installIssues` in `Yarn` has been used only for `Npm`, which is why that code is moved from `Yarn` to `Npm`. Signed-off-by: Frank Viernau <frank_viernau@epam.com>
The comments do not provide much information. Signed-off-by: Frank Viernau <frank_viernau@epam.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Part of: #9261.