We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16f2f76 commit 1107783Copy full SHA for 1107783
bin/postinstall.sh
@@ -0,0 +1,8 @@
1
+#!/bin/sh
2
+
3
+if [ -d ".git" ]; then
4
+ if [ ! -f ".git/hooks/commit-msg" ]; then
5
+ echo "Installing pre-commit hook"
6
+ cd .git/hooks/ && cp ../../node_modules/angular-precommit/index.js commit-msg && cd ../../
7
+ fi
8
+fi
package.json
@@ -52,7 +52,7 @@
52
"test-fast": "grunt test-fast",
53
"version": "node build/sri-update",
54
"prepublishOnly": "grunt build && node build/sri-update --validate",
55
- "postinstall": "cd .git/hooks/ && cp ../../node_modules/angular-precommit/index.js commit-msg && cd ../../"
+ "postinstall": "./bin/postinstall.sh"
56
},
57
"devDependencies": {
58
"angular-precommit": "^1.0.3",
0 commit comments