Skip to content

Commit

Permalink
ci: improve husky
Browse files Browse the repository at this point in the history
  • Loading branch information
inigomarquinez committed Nov 22, 2024
1 parent cb3268c commit 7921d58
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 10 deletions.
3 changes: 0 additions & 3 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no -- commitlint --edit ""
3 changes: 0 additions & 3 deletions .husky/pre-commit
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run lint && npx lint-staged
3 changes: 0 additions & 3 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm test
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"license": "MIT",
"scripts": {
"invoke": "ENVIRONMENT=local node_modules/.bin/serverless invoke local --function main",
"prepare": "husky install",
"prepare": "husky",
"test": "jest",
"coverage": "jest --coverage",
"lint": "tslint -c tslint.json 'src/**/*.ts' 'test/**/*.ts'",
Expand Down

0 comments on commit 7921d58

Please sign in to comment.