Skip to content

Commit

Permalink
fix(pnpm): extract engine constraint (#21959)
Browse files Browse the repository at this point in the history
  • Loading branch information
RahulGautamSingh committed May 8, 2023
1 parent 0b36f97 commit 6ac9a84
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Expand Up @@ -129,6 +129,7 @@ exports[`modules/manager/npm/extract/index .extractPackageFile() extracts engine
"extractedConstraints": {
"node": ">= 8.9.2",
"npm": "^8.0.0",
"pnpm": "^1.2.0",
"vscode": ">=1.49.3",
"yarn": "disabled",
},
Expand Down
1 change: 1 addition & 0 deletions lib/modules/manager/npm/extract/index.spec.ts
Expand Up @@ -418,6 +418,7 @@ describe('modules/manager/npm/extract/index', () => {
extractedConstraints: {
node: '>= 8.9.2',
npm: '^8.0.0',
pnpm: '^1.2.0',
vscode: '>=1.49.3',
yarn: 'disabled',
},
Expand Down
1 change: 1 addition & 0 deletions lib/modules/manager/npm/extract/index.ts
Expand Up @@ -233,6 +233,7 @@ export async function extractPackageFile(
} else if (depName === 'pnpm') {
dep.datasource = NpmDatasource.id;
dep.commitMessageTopic = 'pnpm';
extractedConstraints.pnpm = dep.currentValue;
} else if (depName === 'vscode') {
dep.datasource = GithubTagsDatasource.id;
dep.packageName = 'microsoft/vscode';
Expand Down

0 comments on commit 6ac9a84

Please sign in to comment.