Skip to content

Commit c8cecd0

Browse files
committed
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
1 parent 974ef91 commit c8cecd0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

package.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
],
88
"description": "Minimalistic doc generator with Vue component based layout system",
99
"scripts": {
10-
"precommit": "lint-staged",
1110
"bootstrap": "yarn && yarn tsc",
1211
"lerna:bootstrap": "lerna bootstrap",
1312
"clean": "lerna clean && rm -rf node_modules",
@@ -49,5 +48,10 @@
4948
"lint-staged": "^9.3.0",
5049
"minimist": "^1.2.0",
5150
"typescript": "^3.6.3"
51+
},
52+
"husky": {
53+
"hooks": {
54+
"pre-commit": "lint-staged"
55+
}
5256
}
5357
}

0 commit comments

Comments
 (0)