diff --git a/.husky/commit-msg b/.husky/commit-msg index e8511eae..d468455f 100755 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1,4 +1 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - -npx --no-install commitlint --edit $1 +npx --no-install commitlint --edit $1 \ No newline at end of file diff --git a/.husky/pre-commit b/.husky/pre-commit index 68d8d979..35aa522a 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,6 +1 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - -npx lint-staged - -pnpm check:type +npx lint-staged && npm run check:type diff --git a/.husky/pre-push b/.husky/pre-push index 449fcdee..72c4429b 100755 --- a/.husky/pre-push +++ b/.husky/pre-push @@ -1,4 +1 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - npm test diff --git a/package.json b/package.json index 30300b01..35d0474e 100644 --- a/package.json +++ b/package.json @@ -27,8 +27,7 @@ "reinstall": "pnpm clean:all && pnpm bootstrap", "test": "vitest run", "coverage": "vitest run --coverage", - "prepare": "husky install", - "commit": "git-cz", + "prepare": "husky", "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s", "release": "node scripts/release.mjs" }, @@ -87,7 +86,7 @@ } }, "lint-staged": { - "*.{js,ts,vue}": "eslint --fix --cache", + "*.{js,ts,vue}": "npm run lint-fix", "*.scss": "prettier --write" } }