Skip to content

Commit 1763ddf

Browse files
fix: fix husky hooks
1 parent 66084e7 commit 1763ddf

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

.husky/pre-commit

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

package.json

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
"publish-next": "npm run build && npm publish dist --tag next",
1717
"publish-latest-only": "npm run build && npm publish dist",
1818
"publish-latest": "npm run publish-latest-only && npm dist-tag add `jq '.name' package.json -r`@`jq '.version' package.json -r` next",
19-
"prettier": "prettier --write 'bin/*.js' 'src/**/*.ts' 'tests/**/*.ts'"
19+
"prettier": "prettier --write 'bin/*.js' 'src/**/*.ts' 'tests/**/*.ts'",
20+
"prepare": "husky install"
2021
},
2122
"devDependencies": {
2223
"@angular/animations": "13.3.10",
@@ -68,15 +69,9 @@
6869
"**/test-init.ts"
6970
]
7071
},
71-
"husky": {
72-
"hooks": {
73-
"pre-commit": "lint-staged"
74-
}
75-
},
7672
"lint-staged": {
7773
"*.{js,json,ts,md}": [
78-
"prettier --write",
79-
"git add"
74+
"prettier --write"
8075
]
8176
}
8277
}

0 commit comments

Comments
 (0)