From 380d699014c488928c6948f8f1e91f8cfd377a22 Mon Sep 17 00:00:00 2001 From: "142vip.cn" Date: Mon, 30 Oct 2023 18:02:22 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix(scripts):=20=E4=BF=AE=E5=A4=8D=E8=84=9A?= =?UTF-8?q?=E6=9C=ACprepare=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + scripts/lint | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 229926753..f105a1444 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ }, "scripts": { "preinstall": "chmod +x ./scripts/*", + "prepare": "rm -f .husky/pre-commit && husky install && npx husky add .husky/pre-commit \"./scripts/lint\" && chmod +x .husky/pre-commit", "dev": "vuepress dev docs", "build": "vuepress build docs", "build:proxy": "./scripts/bundle build_proxy", diff --git a/scripts/lint b/scripts/lint index 9255410ea..45d9d1156 100755 --- a/scripts/lint +++ b/scripts/lint @@ -12,7 +12,7 @@ ## # 设置 PATH 环境变量,避免command not found问题 -export PATH="$(pnpm bin):$PATH" +#export PATH="$(pnpm bin):$PATH" # ESLint格式化代码 eslint --fix --ext .js,.ts,.vue --ignore-path .gitignore . From c50c198cb213fe3ef178402f1ccafdd3386e203c Mon Sep 17 00:00:00 2001 From: "142vip.cn" Date: Mon, 30 Oct 2023 18:05:31 +0800 Subject: [PATCH 2/2] chore: update --- scripts/lint | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lint b/scripts/lint index 45d9d1156..9255410ea 100755 --- a/scripts/lint +++ b/scripts/lint @@ -12,7 +12,7 @@ ## # 设置 PATH 环境变量,避免command not found问题 -#export PATH="$(pnpm bin):$PATH" +export PATH="$(pnpm bin):$PATH" # ESLint格式化代码 eslint --fix --ext .js,.ts,.vue --ignore-path .gitignore .