chore: fix Warning: Setting pre-commit script in package.json > scripts will be deprecated

Please move it to husky.hooks in package.json, a .huskyrc file, or a husky.config.js file
Or run ./node_modules/.bin/husky-upgrade for automatic update
This commit is contained in:
ULIVZ
2019-10-05 00:32:17 +08:00
parent 974ef91c45
commit c8cecd0bc0
+5 -1
View File
@@ -7,7 +7,6 @@
],
"description": "Minimalistic doc generator with Vue component based layout system",
"scripts": {
"precommit": "lint-staged",
"bootstrap": "yarn && yarn tsc",
"lerna:bootstrap": "lerna bootstrap",
"clean": "lerna clean && rm -rf node_modules",
@@ -49,5 +48,10 @@
"lint-staged": "^9.3.0",
"minimist": "^1.2.0",
"typescript": "^3.6.3"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
}
}