From 0e3da2b618c473fca214c6ee45824bc2978b01ac Mon Sep 17 00:00:00 2001 From: Mystic <215104920@qq.com> Date: Wed, 28 Aug 2024 13:42:38 +0800 Subject: [PATCH] fix: loss husky hooks --- template/ts/{{cookiecutter.project_slug}}/.husky/pre-commit | 3 --- template/ts/{{cookiecutter.project_slug}}/package.json | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/template/ts/{{cookiecutter.project_slug}}/.husky/pre-commit b/template/ts/{{cookiecutter.project_slug}}/.husky/pre-commit index e1c12eb..1b621c0 100755 --- a/template/ts/{{cookiecutter.project_slug}}/.husky/pre-commit +++ b/template/ts/{{cookiecutter.project_slug}}/.husky/pre-commit @@ -1,5 +1,2 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - npm test npx lint-staged diff --git a/template/ts/{{cookiecutter.project_slug}}/package.json b/template/ts/{{cookiecutter.project_slug}}/package.json index 91d38b4..0bf7aea 100644 --- a/template/ts/{{cookiecutter.project_slug}}/package.json +++ b/template/ts/{{cookiecutter.project_slug}}/package.json @@ -12,7 +12,7 @@ "build": "tsc && ncc build lib/index.js", "test": "jest", "lint": "biome check --write --no-errors-on-unmatched --files-ignore-unknown=true", - "prepare": "husky init" + "prepare": "husky" }, "dependencies": { "@actions/core": "^1.10.1",