Skip to content

Commit

Permalink
chore(root): add pre-push husky hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimmy Andrade committed Jun 7, 2020
1 parent fa95aba commit 6ace49c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = {extends: ['@commitlint/config-conventional']}
module.exports = { extends: ["@commitlint/config-conventional"] };
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"bootstrap": "npm run lerna:install",
"commit": "git cz",
"deploy": "lerna publish",
"husky:prepush": "npm run test",
"lerna:install": "lerna bootstrap",
"postinstall": "npm run lerna:install",
"test": "lerna run test"
Expand Down Expand Up @@ -44,7 +45,8 @@
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-push": "npm run husky:prepush"
}
}
}

0 comments on commit 6ace49c

Please sign in to comment.