diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100644 index 0000000..d42474c --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1 @@ +tsc && lint-staged \ No newline at end of file diff --git a/.huskyrc b/.huskyrc deleted file mode 100644 index 40b707d..0000000 --- a/.huskyrc +++ /dev/null @@ -1,5 +0,0 @@ -{ - "hooks": { - "pre-commit": "tsc && lint-staged" - } -} \ No newline at end of file diff --git a/package.json b/package.json index 3414942..9ac0e53 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,8 @@ "generate": "ts-node src/utils/keypair.ts", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"" + "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"", + "prepare": "husky" }, "engines": { "node": ">=22.0.0",