Skip to content

Commit e7a3d50

Browse files
committed
chore: budge to husky api change
1 parent 2614d75 commit e7a3d50

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,10 @@
88
"build": "lerna run build --stream --parallel --include-filtered-dependencies",
99
"clean": "npx lerna clean --yes && npx lerna run clean --stream --parallel --include-filtered-dependencies",
1010
"commit": "node @commitlint/prompt-cli/cli.js",
11-
"commitmsg": "node @commitlint/cli/lib/cli.js -E GIT_PARAMS",
1211
"deps": "lerna run deps",
1312
"pkg": "lerna run pkg",
1413
"docs": "docsify serve docs",
1514
"lint": "lerna run lint",
16-
"precommit": "lint-staged",
1715
"publish": "lerna publish --conventional-commits",
1816
"reinstall": "yarn clean && yarn install",
1917
"start": "lerna run start --stream --parallel --include-filtered-dependencies",
@@ -101,5 +99,11 @@
10199
"npx": "9.7.1",
102100
"prettier": "1.10.2",
103101
"xo": "0.20.3"
102+
},
103+
"husky": {
104+
"hooks": {
105+
"commit-msg": "node @commitlint/cli/lib/cli.js -E HUSKY_GIT_PARAMS",
106+
"pre-commit": "lint-staged"
107+
}
104108
}
105109
}

0 commit comments

Comments
 (0)