Skip to content

Commit

Permalink
test: add pre-commit check
Browse files Browse the repository at this point in the history
  • Loading branch information
EINDEX committed Jul 18, 2023
1 parent 1bb33e4 commit 6fae981
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpm test
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"dev": "vite",
"build": "tsc && vite build",
"preinstall": "npx only-allow pnpm",
"test": "jest"
"test": "jest",
"prepare": "husky install"
},
"license": "MIT",
"dependencies": {
Expand All @@ -26,6 +27,7 @@
"@typescript-eslint/parser": "5.45.0",
"conventional-changelog-conventionalcommits": "5.0.0",
"eslint": "8.28.0",
"husky": "^8.0.3",
"jest": "^29.5.0",
"jest-environment-jsdom": "^29.5.0",
"semantic-release": "19.0.5",
Expand All @@ -38,4 +40,4 @@
"id": "_eindex-logseq-memos-sync",
"icon": "./logo.webp"
}
}
}
8 changes: 8 additions & 0 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 6fae981

Please sign in to comment.