Skip to content

Commit

Permalink
chore: update husky
Browse files Browse the repository at this point in the history
  • Loading branch information
Aqours committed Apr 17, 2024
1 parent 5fb1695 commit 1ba6276
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 23 deletions.
1 change: 0 additions & 1 deletion .husky/setup.js

This file was deleted.

3 changes: 3 additions & 0 deletions .husky/setup.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { isCI } from 'ci-info';

!isCI && (await import('husky').then((module) => module.default()));
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"packageManager": "[email protected]",
"scripts": {
"prepare": "node ./.husky/setup.js",
"prepare": "node ./.husky/setup.mjs",
"husky:pre-commit": "lint-staged",
"husky:commit-msg": "commitlint --edit ${1}",
"test": "pnpm run build:references && pnpm run eslint && pnpm run tscheck",
Expand Down Expand Up @@ -48,7 +48,7 @@
"dotenv": "16.4.5",
"eslint": "8.57.0",
"eslint-config-prettier": "9.1.0",
"husky": "8.0.3",
"husky": "9.0.11",
"lint-staged": "15.2.2",
"npm-check-updates": "16.14.18",
"prettier": "3.2.5",
Expand Down
33 changes: 13 additions & 20 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1ba6276

Please sign in to comment.