Skip to content

Commit 15b7193

Browse files
committed
chore: upgrade husky
1 parent 8e94f66 commit 15b7193

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@
3333
},
3434
"scripts": {
3535
"build": "cross-env NODE_ENV=production tsc -p .",
36-
"precommit": "lint-staged",
37-
"postcommit": "git reset",
3836
"prepublish": "npm run --if-present build",
3937
"test": "mocha \"test/**/*.{js,ts}\"",
4038
"prettier": "prettier --write \"**/*.{js,jsx,ts,tsx,css}\"",
@@ -79,5 +77,11 @@
7977
"prettier --write",
8078
"git add"
8179
]
80+
},
81+
"husky": {
82+
"hooks": {
83+
"post-commit": "git reset",
84+
"pre-commit": "lint-staged"
85+
}
8286
}
8387
}

0 commit comments

Comments
 (0)