chore(husky): fix husky install for v5

This commit is contained in:
hasezoey
2021-03-09 10:32:53 +01:00
parent f611ba6f42
commit cd557dd48f
4 changed files with 10 additions and 7 deletions
+1
View File
@@ -0,0 +1 @@
_
+4
View File
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
yarn commitlint --edit $1
+4
View File
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
yarn lint-staged
+1 -7
View File
@@ -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",
@@ -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"
}
}