Skip to content

Commit

Permalink
chore: add some hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
WRXinYue committed Jul 18, 2024
1 parent 48abcd3 commit e8dad10
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,14 @@
"vitest": "^1.6.0",
"vue-tsc": "2.0.26"
},
"pnpm": {
"hooks": {
"afterAllResolved": "npx simple-git-hooks"
}
},
"simple-git-hooks": {
"pre-commit": "pnpm lint-staged"
"pre-push": "pnpm lint-staged",
"pre-commit": "pnpm lint && pnpm typecheck"
},
"lint-staged": {
"{packages,demo,scripts}/**/*.{js,ts,vue,json,yml}": [
Expand Down
2 changes: 1 addition & 1 deletion packages/valaxy-addon-live2d
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
],
"exclude": [
"**/dist/**",
"node_modules"
"node_modules",
"packages/valaxy-addon-live2d/"
]
}

0 comments on commit e8dad10

Please sign in to comment.