Skip to content

Commit c983b90

Browse files
committed
chore: fix husky
1 parent 719b032 commit c983b90

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.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+
melos run format && melos run analyze

package.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
{
22
"name": "flutter_gen",
33
"author": "wasabeef",
4-
"husky": {
5-
"hooks": {
6-
"pre-push": "make format && make analyze"
7-
}
8-
},
94
"devDependencies": {
105
"husky": "^7.0.2"
6+
},
7+
"scripts": {
8+
"prepare": "husky install"
119
}
1210
}

0 commit comments

Comments
 (0)