aboutsummaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
authorBobby <[email protected]>2022-06-28 03:33:12 +0530
committerBobby <[email protected]>2022-06-28 03:33:12 +0530
commitd91bfefe7c1f917db8e669b7191a6705ac102102 (patch)
treebbe358bff72c12eced5e78fb46b7ecf2a8b2cc34 /package.json
parentf45597d1e6a2ebd2d4a69a5276c27aab38230615 (diff)
downloadthatcomputerscientist-d91bfefe7c1f917db8e669b7191a6705ac102102.tar.xz
thatcomputerscientist-d91bfefe7c1f917db8e669b7191a6705ac102102.zip
Install husky
Diffstat (limited to 'package.json')
-rw-r--r--package.json8
1 files changed, 7 insertions, 1 deletions
diff --git a/package.json b/package.json
index cffc9819..20636a05 100644
--- a/package.json
+++ b/package.json
@@ -5,7 +5,12 @@
"main": "server.js",
"scripts": {
"start": "node server.js",
- "dev": "nodemon ."
+ "dev": "nodemon .",
+ "hooks:pre-commit": "node ./hooks/pre-commit.js",
+ "prepare": "husky install"
+ },
+ "husky": {
+ "pre-commit": "npm run hooks:pre-commit"
},
"repository": {
"type": "git",
@@ -41,6 +46,7 @@
"yaml": "^2.1.1"
},
"devDependencies": {
+ "husky": "^8.0.1",
"nodemon": "^2.0.16"
}
}