chore: migrate husky

This commit is contained in:
Michael Kriese 2021-08-23 11:08:25 +02:00
parent 454dc436d7
commit ed905f2c4e
No known key found for this signature in database
GPG key ID: B83F553A0724D44E
4 changed files with 10 additions and 7 deletions

4
.husky/commit-msg Executable file
View file

@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npx --no-install commitlint --edit $1

4
.husky/pre-commit Executable file
View file

@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npx --no-install lint-staged

View file

@ -1,6 +0,0 @@
module.exports = {
hooks: {
'pre-commit': 'lint-staged',
'commit-msg': 'commitlint -E HUSKY_GIT_PARAMS',
},
};

View file

@ -18,7 +18,8 @@
"release:standard-version": "standard-version --release-as",
"release": "run-s build release:commit \"release:standard-version -- {1}\" --",
"build": "ncc build -o dist",
"start": "run-s build && node dist"
"start": "run-s build && node dist",
"prepare": "husky install"
},
"repository": {
"type": "git",