8000 chore: update scripts · Yukiniro/toukey@866740e · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 866740e

Browse files
committed
chore: update scripts
1 parent 01d68c2 commit 866740e

File tree

4 files changed

+56
-56
lines changed

4 files changed

+56
-56
lines changed

.eslintignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@ demo
33
__test__
44
.babelrc
55
.zhlintrc
6-
website
6+
site
7+
node_modules
8+
coverage
9+
assets

package.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,12 @@
99
"scripts": {
1010
"build": "unbuild",
1111
"prettier": "npx prettier src/**/*.ts playground/src/**/*.jsx --write",
12-
"lint": "eslint --cache --ext .ts,.js,.mjs,.cjs . && prettier -c src test",
13-
"lint:fix": "eslint --cache --ext .ts,.js,.mjs,.cjs . --fix && prettier -c src test -w",
12+
"lint": "eslint --cache --ext .ts,.js,.mjs,.cjs . && prettier -c src __test__",
13+
"lint:fix": "eslint --cache --ext .ts,.js,.mjs,.cjs . --fix && prettier -c src __test__ -w",
1414
"prepack": "pnpm run build",
1515
"zhlint": "npx zhlint README-zh.md",
16-
"test": "npx vitest",
17-
"test:run": "npx vitest run",
18-
"test:coverrage": "npx vitest --coverage",
16+
"test": "pnpm lint && pnpm test:types && vitest run --coverage",
17+
"test:types": "tsc --noEmit --skipLibCheck",
1918
"release": "pnpm test && changelogen --release && npm publish && git push --follow-tags"
2019
},
2120
"keywords": [
@@ -59,7 +58,7 @@
5958
"jiti": "^1.21.0",
6059
"happy-dom": "^12.10.1",
6160
"prettier": "^3.1.0",
62-
"typescript": "^5.2.2",
61+
"typescript": "^5.3.2",
6362
"unbuild": "^2.0.0",
6463
"vitest": "^1.0.0",
6564
"zhlint": "^0.7.1"

pnpm-lock.yaml

Lines changed: 41 additions & 48 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vitest.config.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ import { defineConfig } from "vitest/config";
33
export default defineConfig({
44
test: {
55
environment: "happy-dom",
6-
testTimeout: 500
6+
testTimeout: 500,
7+
include: ["__test__/**/*.test.ts"],
8+
coverage: {
9+
provider: "v8",
10+
exclude: ["**/site/**", "**/playground/**", "src/types.ts"]
11+
}
712
}
813
});

0 commit comments

Comments
 (0)
0