Skip to content

Commit f72f512

Browse files
committed
chore(*): handle upgrade of husky
1 parent 43bc81c commit f72f512

File tree

4 files changed

+9
-11
lines changed

4 files changed

+9
-11
lines changed

Diff for: .husky/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

Diff for: .husky/commit-msg

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
yarn commitlint --edit $1

Diff for: .husky/pre-commit

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
yarn lint-staged

Diff for: package.json

+4-11
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"semantic-release": "semantic-release",
1313
"release": "yarn run semantic-release",
1414
"release-ci": "echo 'unsafe-perm = true' > ./.npmrc && yarn run semantic-release && rm -rf ./.npmrc",
15-
"commit": "git-cz"
15+
"commit": "git-cz",
16+
"prepare": "husky install"
1617
},
1718
"repository": "https://github.com/bericp1/netlify-cms-oauth-provider-node",
1819
"author": "Brandon Phillips <[email protected]>",
@@ -54,21 +55,13 @@
5455
"engines": {
5556
"node": ">=10.0.0"
5657
},
57-
"husky": {
58-
"hooks": {
59-
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
60-
"pre-commit": "lint-staged"
61-
}
62-
},
6358
"lint-staged": {
6459
"{*,{lib,docs}/**/*,__{tests,mocks}__/**/*}.js": [
6560
"prettier --write",
66-
"eslint",
67-
"git add"
61+
"eslint"
6862
],
6963
"{*,{lib,docs,.github}/**/*,__{tests,mocks}__/**/*}.{json,md,yml}": [
70-
"prettier --write",
71-
"git add"
64+
"prettier --write"
7265
]
7366
},
7467
"config": {

0 commit comments

Comments
 (0)