diff --git a/.git-hooks/pre-commit b/.git-hooks/pre-commit deleted file mode 100644 index 4cd742445..000000000 --- a/.git-hooks/pre-commit +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env sh - -npm run lint-staged diff --git a/package.json b/package.json index ab1cee7cf..3b0dd3ba3 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "docs:build": "vitepress build docs", "docs:preview": "vitepress preview docs", "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", - "prepare": "git config core.hooksPath .git-hooks", + "postinstall": "git config core.hooksPath .git-hooks", "lint-staged": "lint-staged" }, "devDependencies": {