Skip to content

Commit

Permalink
fix: update to new husky config
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfbecker committed May 1, 2019
1 parent b0cd6b4 commit 5caa1e4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,6 @@ async function main(): Promise<void> {
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',
Expand All @@ -246,6 +245,11 @@ async function main(): Promise<void> {
commitlint: {
extends: ['@commitlint/config-conventional'],
},
husky: {
hooks: {
'commit-msg': 'commitlint -e $HUSKY_GIT_PARAMS',
},
},
...(hasTests
? {
nyc: {
Expand Down

0 comments on commit 5caa1e4

Please sign in to comment.