Skip to content

Commit 50e1e69

Browse files
committed
ci: fix
1 parent 5a21916 commit 50e1e69

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scripts/ci-install-eslint.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"use strict"
22

33
const { spawn } = require("child_process")
4-
const semver = require("semver")
54

65
function cd(path) {
76
console.log("$ cd %s", path)
@@ -31,8 +30,8 @@ function sh(command) {
3130

3231
// Install ESLint of the requested version
3332
await sh(`npm install eslint@${requestedVersionSpec} -f`)
34-
if (semver.compare(requestedVersion, "9.0.0"))
35-
await sh(`npm install @types/eslint -f`)
33+
if (Number(requestedVersion) < 9)
34+
await sh(`npm install @types/eslint -D -f`)
3635

3736
// Install ESLint submodule of the requested version
3837
// const installedVersion = require("eslint/package.json").version

0 commit comments

Comments
 (0)