Skip to content

Commit 166abef

Browse files
postinstall: overwrite pre-commit hook if needed (OctoLinker#99)
This lets you `npm install` multiple times without issue. (from OctoLinker#97 (comment))
1 parent 30fb3a9 commit 166abef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
},
77
"main": "lib/app.js",
88
"scripts": {
9-
"postinstall": "ln -s ./scripts/hooks/pre-commit .git/hooks/pre-commit",
9+
"postinstall": "ln -sf ./scripts/hooks/pre-commit .git/hooks/pre-commit",
1010
"lint": "eslint .",
1111
"pretest": "npm run lint",
1212
"test": "karma start",

0 commit comments

Comments
 (0)