Skip to content

Commit

Permalink
fix: prepare script error on windows platform
Browse files Browse the repository at this point in the history
  • Loading branch information
Aqours committed Aug 10, 2023
1 parent 6ad6e66 commit a26aa80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .husky/setup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
!require(`ci-info`).isCI && require(`husky`).install();
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"packageManager": "pnpm@8.3.0",
"scripts": {
"prepare": "node -e '!require(`ci-info`).isCI && require(`husky`).install()'",
"prepare": "node ./.husky/setup.js",
"husky:pre-commit": "pretty-quick --staged",
"husky:commit-msg": "commitlint --edit ${1}",
"test": "pnpm run eslint && pnpm run tscheck",
Expand Down

0 comments on commit a26aa80

Please sign in to comment.