Add lint-staged run at pre-commit git hook
[poolifier.git] / package.json
index f6d56b7bece7a6d3393550ed1f8f0fa05a9ab278..65d18ef1dd58289832cb46b8602b1fd74f50c1cc 100644 (file)
@@ -4,6 +4,7 @@
   "description": "A fast, easy to use Node.js Worker Thread Pool and Cluster Pool implementation",
   "main": "lib/index.js",
   "scripts": {
+    "prepare": "node prepare.js",
     "build": "rollup --config --environment BUILD:development",
     "build:typedoc": "rollup --config --environment BUILD:development --environment DOCUMENTATION",
     "build:prod": "rollup --config",
@@ -78,6 +79,8 @@
     "eslint-plugin-promise": "^6.0.1",
     "eslint-plugin-spellcheck": "^0.0.19",
     "expect": "^29.1.2",
+    "husky": "^8.0.1",
+    "lint-staged": "^13.0.3",
     "microtime": "^3.1.1",
     "mocha": "^10.0.0",
     "mochawesome": "^7.1.3",