diff --git a/.husky/pre-commit b/.husky/pre-commit index cb86514d..c3a457f9 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,7 +1,7 @@ #!/usr/bin/env bash # Source the Husky script -source "$(dirname -- "$0")/_/husky.sh" +. "$(dirname -- "$0")/_/husky.sh" # Run Prettier on frontend files cd frontend || { echo "Failed to change directory to frontend"; exit 1; } @@ -13,4 +13,3 @@ cd ../backend || { echo "Failed to change directory to backend"; exit 1; } echo "[BACKEND] Running the prettier format for you." npx lint-staged - diff --git a/package.json b/package.json index dbc22dd4..bb9f50e4 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,6 @@ "prepare": "husky install && chmod ug+x .husky/*" }, "devDependencies": { - "husky": "^8.0.0" + "husky": "^8.0.3" } }