diff --git a/.husky/pre-commit b/.husky/pre-commit index 6162d8efc..1f280e927 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,6 +1 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - -cd src/Misc/expressionFunc/hashFiles - -npx lint-staged +cd src/Misc/expressionFunc/hashFiles && npx lint-staged diff --git a/src/Misc/expressionFunc/hashFiles/package.json b/src/Misc/expressionFunc/hashFiles/package.json index cec7585f1..d4468d6f3 100644 --- a/src/Misc/expressionFunc/hashFiles/package.json +++ b/src/Misc/expressionFunc/hashFiles/package.json @@ -10,7 +10,7 @@ "lint": "eslint src/**/*.ts", "pack": "ncc build -o ../../layoutbin/hashFiles", "all": "npm run format && npm run lint && npm run build && npm run pack", - "prepare": "cd ../../../../ && husky install" + "prepare": "cd ../../../../ && husky" }, "repository": { "type": "git",