Skip to content

Commit

Permalink
chore: upgrade husky to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
simoneb committed Jul 5, 2021
1 parent f299da6 commit 228cb7a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run build && git add dist
8 changes: 2 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"scripts": {
"build": "ncc build src/index.js",
"lint": "eslint .",
"test": "tap"
"test": "tap",
"prepare": "husky install"
},
"author": {
"name": "Salman Mitha",
Expand Down Expand Up @@ -36,10 +37,5 @@
"husky": "^7.0.0",
"prettier": "^2.3.2",
"tap": "^15.0.9"
},
"husky": {
"hooks": {
"pre-commit": "npm run build && git add dist"
}
}
}

0 comments on commit 228cb7a

Please sign in to comment.