From 5caa1e4eedad623849bc62cb633f27dd32a5e69a Mon Sep 17 00:00:00 2001 From: Felix Becker Date: Wed, 1 May 2019 13:29:03 +0200 Subject: [PATCH] fix: update to new husky config --- src/cli.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/cli.ts b/src/cli.ts index 0898f3bb..b0e41a51 100755 --- a/src/cli.ts +++ b/src/cli.ts @@ -235,7 +235,6 @@ async function main(): Promise { types: 'dist/index.d.ts', scripts: { ...(hasTests ? { test: 'mocha --require ts-node/register "src/**/*.test.ts"' } : {}), - commitmsg: 'commitlint -e $GIT_PARAMS', 'semantic-release': 'semantic-release', prettier: "prettier '**/{*.{js?(on),ts?(x),scss},.*.js?(on)}' --write --list-different", 'prettier-check': 'npm run prettier -- --write=false', @@ -246,6 +245,11 @@ async function main(): Promise { commitlint: { extends: ['@commitlint/config-conventional'], }, + husky: { + hooks: { + 'commit-msg': 'commitlint -e $HUSKY_GIT_PARAMS', + }, + }, ...(hasTests ? { nyc: {