Skip to content

Commit

Permalink
chore: rm pkg os-name
Browse files Browse the repository at this point in the history
  • Loading branch information
aladdin-add committed Mar 10, 2021
1 parent b6cd64b commit 023f50b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions lib/shared/runtime-info.js
Expand Up @@ -12,7 +12,7 @@
const path = require("path");
const spawn = require("cross-spawn");
const { isEmpty } = require("lodash");
const osName = require("os-name");
const os = require("os");
const log = require("../shared/logging");
const packageJson = require("../../package.json");

Expand Down Expand Up @@ -143,7 +143,7 @@ function environment() {
`npm version: ${getBinVersion("npm")}`,
`Local ESLint version: ${getNpmPackageVersion("eslint", { global: false })}`,
`Global ESLint version: ${getNpmPackageVersion("eslint", { global: true })}`,
`Operating System: ${osName()}`
`Operating System: ${os.platform()} ${os.release()}`
].join("\n");
}

Expand Down
1 change: 0 additions & 1 deletion package.json
Expand Up @@ -75,7 +75,6 @@
"minimatch": "^3.0.4",
"natural-compare": "^1.4.0",
"optionator": "^0.9.1",
"os-name": "^4.0.0",
"progress": "^2.0.0",
"regexpp": "^3.1.0",
"semver": "^7.2.1",
Expand Down
8 changes: 4 additions & 4 deletions tests/lib/shared/runtime-info.js
Expand Up @@ -112,7 +112,7 @@ describe("RuntimeInfo", () => {
npm version: v6.11.3
Local ESLint version: v6.3.0 (Currently used)
Global ESLint version: v5.16.0
Operating System: macOS Big Sur
Operating System: darwin 20.3.0
`
);
});
Expand All @@ -130,7 +130,7 @@ describe("RuntimeInfo", () => {
npm version: v6.11.3
Local ESLint version: v6.3.0
Global ESLint version: v5.16.0 (Currently used)
Operating System: macOS Big Sur
Operating System: darwin 20.3.0
`
);
});
Expand All @@ -155,7 +155,7 @@ describe("RuntimeInfo", () => {
npm version: v6.11.3
Local ESLint version: Not found
Global ESLint version: v5.16.0 (Currently used)
Operating System: macOS Big Sur
Operating System: darwin 20.3.0
`
);
});
Expand All @@ -173,7 +173,7 @@ describe("RuntimeInfo", () => {
npm version: v6.11.3
Local ESLint version: v6.3.0 (Currently used)
Global ESLint version: Not found
Operating System: macOS Big Sur
Operating System: darwin 20.3.0
`
);
});
Expand Down

0 comments on commit 023f50b

Please sign in to comment.