Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1fc2a09

Browse files
committed
build: fix husky hooks
1 parent 5731295 commit 1fc2a09

File tree

5 files changed

+13
-7
lines changed

5 files changed

+13
-7
lines changed

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx --no-install commitlint --extends=@commitlint/config-angular --edit $1

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx --no-install lint-staged

.husky/pre-push

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npm t

.huskyrc

Lines changed: 0 additions & 7 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"standard": "^16.0.2"
4242
},
4343
"scripts": {
44+
"prepare": "husky install",
4445
"version": "conventional-changelog -i changelog.md -s -r 0 && git add changelog.md",
4546
"test": "c8 mocha",
4647
"docs:api": "jsdoc2md lib/api.js > docs/api.md",

0 commit comments

Comments
 (0)