build: update husky config to v6

This commit is contained in:
chenjiahan
2021-04-04 15:02:47 +08:00
parent 1a94b41e43
commit 8f0c187278
5 changed files with 45 additions and 128 deletions

View File

@@ -19,6 +19,7 @@
"lint": "vant-cli lint",
"test": "vant-cli test",
"build": "vant-cli build",
"prepare": "husky install",
"release": "vant-cli release --tag next",
"test:watch": "vant-cli test --watch",
"release:site": "sh docs/site/release.sh",
@@ -27,12 +28,6 @@
"npm": {
"tag": "next"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"commit-msg": "vant-cli commit-lint"
}
},
"lint-staged": {
"*.md": "prettier --write",
"*.{ts,tsx,js,vue,less}": "prettier --write",
@@ -65,7 +60,7 @@
"vue": "^3.0.0"
},
"devDependencies": {
"@vant/cli": "^3.8.0",
"@vant/cli": "^3.9.0",
"@vue/compiler-sfc": "^3.0.6",
"prettier": "2.1.0",
"vue": "^3.0.6"