Simplify hybrid manifest/lockfile cases in NPM ecosystem #7184
Labels
L: javascript:npm
npm packages via npm
L: javascript:pnpm
npm packages via pnpm
L: javascript:yarn
npm packages via yarn
L: javascript
T: tech-debt ⚙️
Code improvement description
In the updater implementation living at
npm_and_yarn/
, there's quite a few places that establish a priority of package managers when mixed files are found, like when both Yarn & NPM lockfiles are present. For example, if both NPM and Yarn files are present, we choose Yarn 🤷♂️.We should probably raise in these mixed cases and raise an error during file fetching when they happen. If we also persist the resolved package manager somewhere that the rest of the update components can access, we should be able to fully eliminate this "priority of package managers" from everywhere.
The text was updated successfully, but these errors were encountered: