dependabot / dependabot-core

🤖 Dependabot's core logic for creating update PRs.
https://docs.github.com/en/code-security/dependabot
MIT License
4.73k stars 1.02k forks source link

Set Default `npm` Version to 10 Under enable_corepack_for_npm_and_yarn Feature Flag #10985

Closed kbukum1 closed 4 days ago

kbukum1 commented 4 days ago

What are you trying to accomplish?

This PR addresses general issues with npm version detection and provides a robust solution to handle version determination based on the package-lock.json file. It updates the enable_corepack_for_npm_and_yarn feature by setting the default npm version to 10 when the feature flag is enabled. Previously, the default npm version was set to 8. This update ensures compatibility with the latest npm features while solving broader problems related to npm version detection.

Why is this change needed?

Anything you want to highlight for special attention from reviewers?

How will you know you've accomplished your goal?

Checklist