Skip to content

Commit 72dbfbc

Browse files
authored
chore: use pkg parameter in getNpmPackageVersion (#16525)
1 parent 5c39425 commit 72dbfbc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/shared/runtime-info.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ function environment() {
9797
*/
9898
function getNpmPackageVersion(pkg, { global = false } = {}) {
9999
const npmBinArgs = ["bin", "-g"];
100-
const npmLsArgs = ["ls", "--depth=0", "--json", "eslint"];
100+
const npmLsArgs = ["ls", "--depth=0", "--json", pkg];
101101

102102
if (global) {
103103
npmLsArgs.push("-g");

0 commit comments

Comments
 (0)