mirror of
https://github.com/actions/github-script.git
synced 2026-02-08 03:57:27 +00:00
Update husky to v6.0.0
This commit is contained in:
parent
672319273b
commit
d4ad4e2044
3 changed files with 10 additions and 9 deletions
1
.husky/.gitignore
vendored
Normal file
1
.husky/.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
_
|
||||
5
.husky/pre-commit
Normal file
5
.husky/pre-commit
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
. "$(dirname "$0")/_/husky.sh"
|
||||
|
||||
npm exec run-s style:write test build
|
||||
git add dist/
|
||||
13
package.json
13
package.json
|
|
@ -13,13 +13,8 @@
|
|||
"lint": "eslint src __test__",
|
||||
"style:check": "run-p --continue-on-error --aggregate-output format:check lint",
|
||||
"style:write": "run-p --continue-on-error --aggregate-output format:write lint",
|
||||
"pre-commit": "run-s style:write test build",
|
||||
"test": "jest"
|
||||
},
|
||||
"husky": {
|
||||
"hooks": {
|
||||
"pre-commit": "npm run pre-commit && git add dist/"
|
||||
}
|
||||
"test": "jest",
|
||||
"prepare": "husky install"
|
||||
},
|
||||
"jest": {
|
||||
"preset": "ts-jest",
|
||||
|
|
@ -50,11 +45,11 @@
|
|||
"@vercel/ncc": "^0.23.0",
|
||||
"eslint": "^7.7.0",
|
||||
"eslint-config-prettier": "^6.11.0",
|
||||
"husky": "^4.2.5",
|
||||
"husky": "^6.0.0",
|
||||
"jest": "^26.4.1",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"prettier": "^2.0.5",
|
||||
"ts-jest": "^26.2.0",
|
||||
"typescript": "^4.0.2"
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue