Skip to content

Commit

Permalink
chore(J:CDX-227) update husky to 7 (#321)
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-bompart and y-lakhdar authored Jul 6, 2021
1 parent d9ff1c6 commit bb4fdaa
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 109 deletions.
2 changes: 2 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
npm run commit-msg
2 changes: 2 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
npm run pre-commit
105 changes: 4 additions & 101 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 5 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"eslint-config-prettier": "^8.3.0",
"exponential-backoff": "^3.1.0",
"gts": "^3.1.0",
"husky": "^4.3.8",
"husky": "^7.0.0",
"lerna": "^4.0.0",
"lint-staged": "^10.5.4",
"prettier": "^2.3.0",
Expand All @@ -35,12 +35,6 @@
"typescript": "^3.9.9",
"yargs": "^16.2.0"
},
"husky": {
"hooks": {
"commit-msg": "node ./hooks/commit-msg.js",
"pre-commit": "lint-staged"
}
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
Expand Down Expand Up @@ -77,6 +71,9 @@
"npm:publish:template": "lerna run --no-bail npm:publish:template",
"npm:bump:template": "lerna run --no-bail npm:bump:template",
"npm:pkglock": "lerna exec npm i",
"npm:cleanPackage": "lerna exec node ../../scripts/clean-package-json.js"
"npm:cleanPackage": "lerna exec node ../../scripts/clean-package-json.js",
"prepare": "husky install",
"commit-msg": "node ./hooks/commit-msg.js",
"pre-commit": "lint-staged"
}
}

0 comments on commit bb4fdaa

Please sign in to comment.