From 6ace49cf92a2a6aa3dd430c97963b514ee12c219 Mon Sep 17 00:00:00 2001 From: Jimmy Andrade Date: Sun, 7 Jun 2020 13:28:55 -0300 Subject: [PATCH] chore(root): add pre-push husky hook --- commitlint.config.js | 2 +- package.json | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/commitlint.config.js b/commitlint.config.js index 28fe5c5b..5073c20d 100644 --- a/commitlint.config.js +++ b/commitlint.config.js @@ -1 +1 @@ -module.exports = {extends: ['@commitlint/config-conventional']} +module.exports = { extends: ["@commitlint/config-conventional"] }; diff --git a/package.json b/package.json index 2e520bf6..0a3f4bc8 100644 --- a/package.json +++ b/package.json @@ -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" @@ -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" } } }