File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 55
55
run : npm install -f
56
56
- name : Install ESLint v${{ matrix.eslint }}
57
57
run : node scripts/ci-install-eslint ${{ matrix.eslint }}
58
- - name : Build
59
- run : npm run -s build
60
58
- name : Test
61
59
run : npm run -s test
62
60
test-for-old-eslint :
Original file line number Diff line number Diff line change 65
65
"prebuild" : " npm run -s clean" ,
66
66
"build" : " tsc --module es2015 && rollup -c -o index.js && dts-bundle --name vue-eslint-parser --main .temp/index.d.ts --out ../index.d.ts" ,
67
67
"clean" : " rimraf .temp index.*" ,
68
- "coverage" : " vitest --coverage --ui" ,
68
+ "coverage" : " vitest --coverage --ui" ,
69
69
"lint" : " eslint src test package.json" ,
70
- "pretest" : " run-s build lint" ,
70
+ "pretest" : " npm run lint" ,
71
71
"test" : " vitest" ,
72
72
"test:cover" : " vitest --coverage" ,
73
73
"update-fixtures" : " ts-node --transpile-only scripts/update-fixtures-ast.js && ts-node --transpile-only scripts/update-fixtures-document-fragment.js" ,
Original file line number Diff line number Diff line change 1
1
"use strict"
2
2
3
3
const { spawn } = require ( "child_process" )
4
+ const semver = require ( "semver" )
4
5
5
6
function cd ( path ) {
6
7
console . log ( "$ cd %s" , path )
@@ -30,6 +31,8 @@ function sh(command) {
30
31
31
32
// Install ESLint of the requested version
32
33
await sh ( `npm install eslint@${ requestedVersionSpec } -f` )
34
+ if ( semver . compare ( requestedVersionSpec , "9.0.0" ) )
35
+ await sh ( `npm install @types/eslint -f` )
33
36
34
37
// Install ESLint submodule of the requested version
35
38
// const installedVersion = require("eslint/package.json").version
You can’t perform that action at this time.
0 commit comments