瀏覽代碼

feat: add new husky hooks

Sarah Norris 3 年之前
父節點
當前提交
d93a34f9a6
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      package.json

+ 3 - 1
package.json

@@ -44,7 +44,9 @@
 	},
 	"husky": {
 		"hooks": {
-			"pre-commit": "lint-staged && node pre-commit-hook.js"
+			"pre-commit": "lint-staged && node pre-commit-hook.js",
+			"prepare-commit-msg": "exec < /dev/tty && git cz --hook || true",
+			"commit-msg": "npx --no -- commitlint --edit '$1'"
 		}
 	},
 	"lint-staged": {