Skip to content

Commit 5deb449

Browse files
committed
Run husky install in prepare instead of postinstall
1 parent 7e2b2d3 commit 5deb449

File tree

2 files changed

+11
-257
lines changed

2 files changed

+11
-257
lines changed

package.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@
1010
"module": "lib/module/index.js",
1111
"types": "lib/typescript/index.d.ts",
1212
"scripts": {
13-
"prepare": "bob build",
14-
"postinstall": "husky install",
15-
"prepublishOnly": "pinst --disable",
16-
"postpublish": "pinst --enable",
13+
"prepare": "bob build && husky install",
1714
"lint": "tsc --noEmit && eslint src --ext ts,tsx"
1815
},
1916
"peerDependencies": {
@@ -25,8 +22,7 @@
2522
"@types/react-native": "0.62.13",
2623
"eslint": "^7.16.0",
2724
"eslint-config-tienphaw": "^1.4.0",
28-
"husky": "^5.0.6",
29-
"pinst": "^2.1.1",
25+
"husky": "^6.0.0",
3026
"prettier": "^2.2.1",
3127
"react": "16.13.1",
3228
"react-native": "0.63.4",

0 commit comments

Comments
 (0)