From 5aa7047f5aa81f24a5d812f85cec369be88656d2 Mon Sep 17 00:00:00 2001 From: Nagi-ovo <13264500190@163.com> Date: Mon, 26 Aug 2024 19:29:26 +0800 Subject: [PATCH] husky: bun migration --- .husky/commit-msg | 2 +- .husky/pre-commit | 2 +- commitlint.config.js | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.husky/commit-msg b/.husky/commit-msg index 0bd658f..cbd7d2f 100755 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1,4 +1,4 @@ #!/bin/sh . "$(dirname "$0")/_/husky.sh" -npx --no-install commitlint --edit "$1" +bun run commitlint --edit "$1" \ No newline at end of file diff --git a/.husky/pre-commit b/.husky/pre-commit index c37466e..f379d8b 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,4 @@ #!/bin/sh . "$(dirname "$0")/_/husky.sh" -npx lint-staged \ No newline at end of file +bun run lint-staged \ No newline at end of file diff --git a/commitlint.config.js b/commitlint.config.js index a608433..a395f32 100644 --- a/commitlint.config.js +++ b/commitlint.config.js @@ -17,7 +17,8 @@ module.exports = { 'perf', 'revert', 'vercel', - 'lint' + 'lint', + 'husky' ], ], },