From a406ed80aaea04a320d9b62ba213e54232ee8a5d Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Thu, 28 Feb 2019 08:00:41 +1100 Subject: [PATCH] chore: change for updated husky --- package.json | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index ed436ff..d10bc50 100644 --- a/package.json +++ b/package.json @@ -29,8 +29,6 @@ }, "scripts": { "clean": "find test -type f ! -name '*.json' ! -name '*.js' ! -name '.eslintrc' -delete && rm *.log", - "prepush": "npm test && npm run typings", - "commitmsg": "validate-commit-msg", "posttest": "npm run clean", "pretest": "eslint 'lib/**/*.js' 'test/**/*.js'", "test": "tap 'test/tap/**/*.js' --cov", @@ -95,5 +93,11 @@ "require": [ "./test/sandbox-coverage" ] + }, + "husky": { + "hooks": { + "commit-msg": "validate-commit-msg", + "pre-push": "npm test && npm run typings" + } } }