Skip to content

Commit

Permalink
fix(index): fix script so $1 is added to husky hook commit-msg
Browse files Browse the repository at this point in the history
  • Loading branch information
remarkablemark committed Jun 6, 2022
1 parent 16ca856 commit 49b894a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,9 @@ readdirSync(filesPath).forEach(filename => {
if (isGit) {
log('Adding hooks...');
exec(`npx ${huskyInstall}`);
exec(`npx husky add .husky/commit-msg 'npx commitlint --edit $1'`);
exec('git add .husky/');
exec(`npx husky add .husky/commit-msg ''`);
exec(`echo 'npx commitlint --edit $1' >> .husky/commit-msg`);
exec('git add .husky');
}

/**
Expand Down

0 comments on commit 49b894a

Please sign in to comment.