Skip to content

Commit

Permalink
update commander
Browse files Browse the repository at this point in the history
fixes #494
  • Loading branch information
joaomoreno committed Oct 5, 2020
1 parent 5d440b4 commit 7f2ccd5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"azure-devops-node-api": "^7.2.0",
"chalk": "^2.4.2",
"cheerio": "^1.0.0-rc.1",
"commander": "^2.8.1",
"commander": "^6.1.0",
"denodeify": "^1.2.1",
"glob": "^7.0.6",
"leven": "^3.1.0",
Expand Down
8 changes: 5 additions & 3 deletions src/npm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,11 @@ async function getYarnDependencies(cwd: string, packagedDependencies?: string[])
export async function detectYarn(cwd: string) {
for (const file of ['yarn.lock', '.yarnrc']) {
if (await exists(path.join(cwd, file))) {
log.info(
`Detected presense of ${file}. Using 'yarn' instead of 'npm' (to override this pass '--no-yarn' on the command line).`
);
if (!process.env['VSCE_TESTS']) {
log.info(
`Detected presense of ${file}. Using 'yarn' instead of 'npm' (to override this pass '--no-yarn' on the command line).`
);
}
return true;
}
}
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -324,10 +324,10 @@ color-name@~1.1.4:
resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2"
integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==

commander@^2.8.1:
version "2.19.0"
resolved "https://registry.yarnpkg.com/commander/-/commander-2.19.0.tgz#f6198aa84e5b83c46054b94ddedbfed5ee9ff12a"
integrity sha512-6tvAOO+D6OENvRAh524Dh9jcfKTYDQAqvqezbCW82xj5X0pSrcpxtvRKHLG0yBY6SD7PSDrJaj+0AiOcKVd1Xg==
commander@^6.1.0:
version "6.1.0"
resolved "https://registry.yarnpkg.com/commander/-/commander-6.1.0.tgz#f8d722b78103141006b66f4c7ba1e97315ba75bc"
integrity sha512-wl7PNrYWd2y5mp1OK/LhTlv8Ff4kQJQRXXAvF+uU/TPNiVJUxZLRYGj/B0y/lPGAVcSbJqH2Za/cvHmrPMC8mA==

compare-versions@^3.6.0:
version "3.6.0"
Expand Down

0 comments on commit 7f2ccd5

Please sign in to comment.