Skip to content

Commit

Permalink
chore: update scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Yukiniro committed Dec 19, 2023
1 parent 01d68c2 commit 866740e
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 56 deletions.
5 changes: 4 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ demo
__test__
.babelrc
.zhlintrc
website
site
node_modules
coverage
assets
11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,12 @@
"scripts": {
"build": "unbuild",
"prettier": "npx prettier src/**/*.ts playground/src/**/*.jsx --write",
"lint": "eslint --cache --ext .ts,.js,.mjs,.cjs . && prettier -c src test",
"lint:fix": "eslint --cache --ext .ts,.js,.mjs,.cjs . --fix && prettier -c src test -w",
"lint": "eslint --cache --ext .ts,.js,.mjs,.cjs . && prettier -c src __test__",
"lint:fix": "eslint --cache --ext .ts,.js,.mjs,.cjs . --fix && prettier -c src __test__ -w",
"prepack": "pnpm run build",
"zhlint": "npx zhlint README-zh.md",
"test": "npx vitest",
"test:run": "npx vitest run",
"test:coverrage": "npx vitest --coverage",
"test": "pnpm lint && pnpm test:types && vitest run --coverage",
"test:types": "tsc --noEmit --skipLibCheck",
"release": "pnpm test && changelogen --release && npm publish && git push --follow-tags"
},
"keywords": [
Expand Down Expand Up @@ -59,7 +58,7 @@
"jiti": "^1.21.0",
"happy-dom": "^12.10.1",
"prettier": "^3.1.0",
"typescript": "^5.2.2",
"typescript": "^5.3.2",
"unbuild": "^2.0.0",
"vitest": "^1.0.0",
"zhlint": "^0.7.1"
Expand Down
89 changes: 41 additions & 48 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
environment: "happy-dom",
testTimeout: 500
testTimeout: 500,
include: ["__test__/**/*.test.ts"],
coverage: {
provider: "v8",
exclude: ["**/site/**", "**/playground/**", "src/types.ts"]
}
}
});

0 comments on commit 866740e

Please sign in to comment.