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

fix(volta): make sure volta uses the same yarn package overwrite #18893

Merged
merged 12 commits into from Nov 16, 2022
6 changes: 6 additions & 0 deletions lib/modules/manager/npm/extract/index.ts
Expand Up @@ -235,6 +235,12 @@ export async function extractPackageFile(
} else if (depName === 'yarn') {
dep.datasource = NpmDatasource.id;
dep.commitMessageTopic = 'Yarn';
if (
dep.currentValue.startsWith('2') ||
dep.currentValue.startsWith('3')
) {
dep.packageName = '@yarnpkg/cli';
}
} else if (depName === 'npm') {
dep.datasource = NpmDatasource.id;
} else {
Expand Down