Skip to content
This repository has been archived by the owner on Aug 3, 2022. It is now read-only.

Commit

Permalink
fix: fixed hook install for commit message validation
Browse files Browse the repository at this point in the history
  • Loading branch information
Slowki committed Mar 19, 2018
1 parent 8807648 commit 9fe9dd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"prepublishOnly": "npm run clean && npm run build && documentation build 'src/**' -f html --infer-private -o docs",
"postinstall": "npm run git:setup",
"git:validate-commit": "commitlint -x @commitlint/config-conventional",
"git:setup": "bash -c \"F='.git/hooks/commit-msg'; if [ ! -e \\$F ]; then echo 'cat \\$1 | npm run git:validate-commit' > \\$F; chmod +x \\$F; fi\""
"git:setup": "bash -c \"F='.git/hooks/commit-msg'; if [[ -e .git && ! -e \\$F ]]; then echo 'cat \\$1 | npm run git:validate-commit' > \\$F; chmod +x \\$F; fi\""
},
"files": [
"dist",
Expand Down

0 comments on commit 9fe9dd8

Please sign in to comment.