Skip to content

Commit a27eccc

Browse files
committed
ci: try fix
1 parent 6c1b3a9 commit a27eccc

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.github/workflows/CI.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ jobs:
5555
run: npm install -f
5656
- name: Install ESLint v${{ matrix.eslint }}
5757
run: node scripts/ci-install-eslint ${{ matrix.eslint }}
58-
- name: Build
59-
run: npm run -s build
6058
- name: Test
6159
run: npm run -s test
6260
test-for-old-eslint:

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@
6565
"prebuild": "npm run -s clean",
6666
"build": "tsc --module es2015 && rollup -c -o index.js && dts-bundle --name vue-eslint-parser --main .temp/index.d.ts --out ../index.d.ts",
6767
"clean": "rimraf .temp index.*",
68-
"coverage": "vitest --coverage --ui",
68+
"coverage": "vitest --coverage --ui",
6969
"lint": "eslint src test package.json",
70-
"pretest": "run-s build lint",
70+
"pretest": "npm run lint",
7171
"test": "vitest",
7272
"test:cover": "vitest --coverage",
7373
"update-fixtures": "ts-node --transpile-only scripts/update-fixtures-ast.js && ts-node --transpile-only scripts/update-fixtures-document-fragment.js",

scripts/ci-install-eslint.js

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

33
const { spawn } = require("child_process")
4+
const semver = require("semver")
45

56
function cd(path) {
67
console.log("$ cd %s", path)
@@ -30,6 +31,8 @@ function sh(command) {
3031

3132
// Install ESLint of the requested version
3233
await sh(`npm install eslint@${requestedVersionSpec} -f`)
34+
if (semver.compare(requestedVersionSpec, "9.0.0"))
35+
await sh(`npm install @types/eslint -f`)
3336

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

0 commit comments

Comments
 (0)