From 07a3867fcb9bf8b9a19da7d6f85ca79c924d687c Mon Sep 17 00:00:00 2001 From: Sambo Chea Date: Mon, 13 Sep 2021 20:32:14 +0700 Subject: [PATCH] Fixed and add husky for prettier --- .husky/pre-commit | 2 +- package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index c37466e..36af219 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,4 @@ #!/bin/sh . "$(dirname "$0")/_/husky.sh" -npx lint-staged \ No newline at end of file +npx lint-staged diff --git a/package.json b/package.json index 74eee89..16c940e 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,8 @@ "main": "dist/index.js", "scripts": { "start": "tsc -w", - "build": "rm -rf dist && tsc" + "build": "rm -rf dist && tsc", + "prepare": "husky install" }, "repository": { "type": "git",