Skip to content

Commit

Permalink
chore: use pkg parameter in getNpmPackageVersion (#16525)
Browse files Browse the repository at this point in the history
  • Loading branch information
bfrontend committed Nov 9, 2022
1 parent 5c39425 commit 72dbfbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/shared/runtime-info.js
Expand Up @@ -97,7 +97,7 @@ function environment() {
*/
function getNpmPackageVersion(pkg, { global = false } = {}) {
const npmBinArgs = ["bin", "-g"];
const npmLsArgs = ["ls", "--depth=0", "--json", "eslint"];
const npmLsArgs = ["ls", "--depth=0", "--json", pkg];

if (global) {
npmLsArgs.push("-g");
Expand Down

0 comments on commit 72dbfbc

Please sign in to comment.