From 8bc43f2af3a7260e10094d354095d3b0c57631a1 Mon Sep 17 00:00:00 2001 From: Peak Date: Sat, 23 Nov 2024 01:52:25 +0800 Subject: [PATCH] Replace `husky install` with `husky`, update husky hook file (#41) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 🔧 chore: Update package.json, replace husky install with husky * 🔧 chore: Update husky hooks config --------- Co-authored-by: CanisMinor --- .husky/commit-msg | 2 -- .husky/pre-commit | 2 -- package.json | 2 +- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/.husky/commit-msg b/.husky/commit-msg index c160a77..6ef9628 100755 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1,4 +1,2 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" npx --no -- commitlint --edit ${1} diff --git a/.husky/pre-commit b/.husky/pre-commit index cf0c46b..e5f7d54 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,2 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" npx --no-install lint-staged diff --git a/package.json b/package.json index 513fe45..8935293 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ "lint": "eslint \"{src,api,lib}/**/*.{js,jsx,ts,tsx}\" --fix", "lint:md": "remark . --quiet --frail --output", "lint:style": "stylelint \"{src,tests}/**/*.{js,jsx,ts,tsx}\" --fix", - "prepare": "husky install && npm run setup", + "prepare": "husky && npm run setup", "prepublishOnly": "npm run build", "prettier": "prettier -c --write \"**/**\"", "release": "semantic-release",