Skip to content

Commit e84bbdc

Browse files
committed
chore(deps): upgrade husky
1 parent 653cb87 commit e84bbdc

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

package.json

+7-3
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@
1818
"build": "cross-env NODE_ENV=production babel src --out-dir lib --copy-files --source-maps",
1919
"watch": "babel src --out-dir lib --watch --source-maps",
2020
"prepublish": "npm run --if-present build",
21-
"prettier": "prettier --write '**/*.{js,jsx,ts,tsx,css}'",
22-
"precommit": "lint-staged",
23-
"postcommit": "git reset"
21+
"prettier": "prettier --write '**/*.{js,jsx,ts,tsx,css}'"
2422
},
2523
"keywords": [
2624
"rc",
@@ -73,5 +71,11 @@
7371
"prettier --write",
7472
"git add"
7573
]
74+
},
75+
"husky": {
76+
"hooks": {
77+
"post-commit": "git reset",
78+
"pre-commit": "lint-staged"
79+
}
7680
}
7781
}

0 commit comments

Comments
 (0)