Skip to content

Commit 462413b

Browse files
author
Michael Stramel
committed
update husky
1 parent 492413b commit 462413b

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

.husky/pre-commit

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+
npm run precommit

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
"build": "node build.js",
2020
"dev": "npm run build && npm start",
2121
"start": "node ./bin/card.js",
22-
"test": "echo \"Error: no test specified\" && exit 1"
22+
"test": "echo \"Error: no test specified\" && exit 1",
23+
"prepare": "husky install",
24+
"precommit": "lint-staged"
2325
},
2426
"keywords": [
2527
"card",
@@ -34,16 +36,11 @@
3436
"devDependencies": {
3537
"boxen": "^5.0.0",
3638
"chalk": "^4.1.0",
37-
"husky": "^6.0.0",
39+
"husky": "^7.0.0",
3840
"left-pad": "^1.3.0",
3941
"lint-staged": "^11.2.0",
4042
"prettier": "^2.1.2"
4143
},
42-
"husky": {
43-
"hooks": {
44-
"pre-commit": "lint-staged"
45-
}
46-
},
4744
"lint-staged": {
4845
"*.{js,ts}": [
4946
"prettier --write",

0 commit comments

Comments
 (0)