ci: fix lint-staged

This commit is contained in:
peaceiris 2019-09-22 08:07:55 +09:00
parent 6a76d4e699
commit 6b5ed8a455

View file

@ -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"
] ]
}, },