Skip to content

Commit

Permalink
chore(husky): fix husky install for v5
Browse files Browse the repository at this point in the history
  • Loading branch information
hasezoey committed Mar 9, 2021
1 parent 66576d5 commit 7a2a1b9
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn commitlint --edit $1
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"

yarn lint-staged
8 changes: 1 addition & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,6 @@
"git add"
]
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-commit": "lint-staged"
}
},
"scripts": {
"test": "yarn --cwd packages/mongodb-memory-server-core run test",
"lint": "lerna run lint --stream --npm-client=yarn --no-prefix",
Expand All @@ -64,6 +58,6 @@
"build": "tsc --build tsconfig.build.json",
"semantic-release": "semantic-release",
"readme:toc": "doctoc ./README.md",
"postinstall": "yarn build"
"postinstall": "husky install"
}
}

0 comments on commit 7a2a1b9

Please sign in to comment.