ci: fix lint-staged
This commit is contained in:
parent
6a76d4e699
commit
6b5ed8a455
1 changed files with 4 additions and 5 deletions
|
|
@ -16,15 +16,14 @@
|
||||||
"skipCI": true,
|
"skipCI": true,
|
||||||
"hooks": {
|
"hooks": {
|
||||||
"pre-commit": "lint-staged",
|
"pre-commit": "lint-staged",
|
||||||
"post-commit": "npm run build && git add node_modules/* && git commit -m \"deps: Husky commit correct node modules\""
|
"post-commit": "npm run tsc && npm run build && git add ./lib/**/*.js ./node_modules && git commit -m \"deps: Husky commit correct node modules\""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
"src/**/*.ts": [
|
"src/**/*.ts": [
|
||||||
"npm run format:check && :",
|
"prettier --check",
|
||||||
"npm run lint && :",
|
"eslint",
|
||||||
"npm run tsc && :",
|
"jest --bail --findRelatedTests",
|
||||||
"npm run test && :",
|
|
||||||
"git add"
|
"git add"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue