Skip to content

Commit f558d6a

Browse files
committed
chore: update, try fix ci
1 parent dd1335a commit f558d6a

File tree

6 files changed

+11
-4
lines changed

6 files changed

+11
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/.temp
22
node_modules
3+
/coverage
34
/test/temp
45
/index.*
56
/npm-debug.log

eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export default [
6262
},
6363

6464
loggerFn: false,
65-
project: "tsconfig.json",
65+
project: ["tsconfig.json", "tsconfig.test.json"],
6666
},
6767
},
6868

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"prebuild": "npm run -s clean",
6767
"build": "tsc --module es2015 && rollup -c -o index.js && dts-bundle --name vue-eslint-parser --main .temp/index.d.ts --out ../index.d.ts",
6868
"clean": "rimraf .temp index.*",
69-
"coverage": "vitest --ui",
69+
"coverage": "vitest --coverage --ui",
7070
"lint": "eslint src test package.json",
7171
"pretest": "run-s build lint",
7272
"test": "vitest",

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@
3737

3838
"skipLibCheck": true
3939
},
40-
"include": ["src/**/*.ts", "test/**/*.ts", "vitest.config.ts"]
40+
"include": ["src/**/*.ts"]
4141
}

tsconfig.test.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"moduleResolution": "Bundler"
5+
},
6+
"include": ["test/**/*.ts", "vitest.config.ts"]
7+
}

vitest.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ export default defineConfig({
66
include: ["test/**/*.test.ts"],
77
teardownTimeout: 60000,
88
coverage: {
9-
enabled: true,
109
include: ["src"],
1110
},
1211
},

0 commit comments

Comments
 (0)