diff --git a/.husky/pre-push b/.husky/pre-push deleted file mode 100755 index ba05e4ad..00000000 --- a/.husky/pre-push +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env sh - -# 获取当前分支名 -BRANCH=$(git rev-parse --abbrev-ref HEAD) - -# 获取远程仓库列表 -REMOTES=$(git remote) - -# 检查是否存在 gitlab 远程仓库 -if ! echo "$REMOTES" | grep -q "gitlab"; then - echo "Error: GitLab remote repository not found" - exit 1 -fi - -echo "Pushing $BRANCH to GitLab..." - -# 如果存在 github 远程仓库,推送到 GitHub -if echo "$REMOTES" | grep -q "github"; then - echo "Pushing $BRANCH to GitHub..." - git push github $BRANCH -fi - -git push gitlab $BRANCH - -# 防止 push 触发狗子 -exit 0 diff --git a/frontend/package.json b/frontend/package.json index 5f0744f7..5fa0b6c5 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -13,8 +13,7 @@ "serve:remotes": "lerna run serve --scope=remote --parallel", "dev": "lerna run dev --scope=core --stream", "stop": "kill-port --port 5000", - "scan": "i18next-scanner --config i18next-scanner.config.js", - "prepare": "cd .. && husky install .husky" + "scan": "i18next-scanner --config i18next-scanner.config.js" }, "keywords": [], "author": "", @@ -69,7 +68,6 @@ "eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-react-refresh": "^0.4.4", "file-saver": "^2.0.5", - "husky": "^9.1.7", "i18next-scanner": "^4.5.0", "jest": "^29.7.0", "jest-environment-jsdom": "^29.7.0",