Skip to content

Commit

Permalink
feat: add precommit hook on npm postinstall
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcy Sutton authored and marcysutton committed Aug 18, 2017
1 parent 237ccff commit 9b3d199
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,11 @@
"test": "grunt test",
"test-fast": "grunt test-fast",
"version": "node build/sri-update",
"prepublishOnly": "grunt build && node build/sri-update --validate"
"prepublishOnly": "grunt build && node build/sri-update --validate",
"postinstall": "ln -s -f node_modules/angular-precommit/index.js .git/hooks/commit-msg"
},
"devDependencies": {
"angular-precommit": "^1.0.3",
"babel-plugin-transform-object-rest-spread": "^6.6.5",
"babel-polyfill": "^6.7.4",
"babel-preset-es2015": "^6.6.0",
Expand Down

0 comments on commit 9b3d199

Please sign in to comment.