mirror of
https://github.com/hanzoai/mongodb-memory-server.git
synced 2026-09-24 17:00:24 +00:00
chore(husky): fix husky install for v5
This commit is contained in:
@@ -0,0 +1 @@
|
||||
_
|
||||
Executable
+4
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
. "$(dirname "$0")/_/husky.sh"
|
||||
|
||||
yarn commitlint --edit $1
|
||||
Executable
+4
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
. "$(dirname "$0")/_/husky.sh"
|
||||
|
||||
yarn lint-staged
|
||||
+1
-7
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user