Skip to content
Snippets Groups Projects
Commit 8a7d0c23 authored by Rhys Arkins's avatar Rhys Arkins
Browse files

feat(pnpm): extract pnpm from engines for updating

parent fac38a1d
No related branches found
No related tags found
No related merge requests found
...@@ -33,6 +33,7 @@ Object { ...@@ -33,6 +33,7 @@ Object {
"compatibility": Object { "compatibility": Object {
"node": ">= 8.9.2", "node": ">= 8.9.2",
"npm": "^8.0.0", "npm": "^8.0.0",
"pnpm": "^1.2.0",
"yarn": "disabled", "yarn": "disabled",
}, },
"deps": Array [ "deps": Array [
...@@ -108,6 +109,14 @@ Object { ...@@ -108,6 +109,14 @@ Object {
"depType": "engines", "depType": "engines",
"prettyDepType": "engine", "prettyDepType": "engine",
}, },
Object {
"commitMessageTopic": "pnpm",
"currentValue": "^1.2.0",
"datasource": "npm",
"depName": "pnpm",
"depType": "engines",
"prettyDepType": "engine",
},
Object { Object {
"commitMessageTopic": "Yarn", "commitMessageTopic": "Yarn",
"currentValue": "disabled", "currentValue": "disabled",
......
...@@ -213,6 +213,7 @@ describe('manager/npm/extract', () => { ...@@ -213,6 +213,7 @@ describe('manager/npm/extract', () => {
atom: '>=1.7.0 <2.0.0', atom: '>=1.7.0 <2.0.0',
node: '>= 8.9.2', node: '>= 8.9.2',
npm: '^8.0.0', npm: '^8.0.0',
pnpm: '^1.2.0',
yarn: 'disabled', yarn: 'disabled',
}, },
main: 'index.js', main: 'index.js',
......
...@@ -179,6 +179,10 @@ export async function extractPackageFile( ...@@ -179,6 +179,10 @@ export async function extractPackageFile(
dep.datasource = datasourceNpm.id; dep.datasource = datasourceNpm.id;
dep.commitMessageTopic = 'npm'; dep.commitMessageTopic = 'npm';
compatibility.npm = dep.currentValue; compatibility.npm = dep.currentValue;
} else if (depName === 'pnpm') {
dep.datasource = datasourceNpm.id;
dep.commitMessageTopic = 'pnpm';
compatibility.pnpm = dep.currentValue;
} else { } else {
dep.skipReason = SkipReason.UnknownEngines; dep.skipReason = SkipReason.UnknownEngines;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment