From 16f2f76cac9282e35e2ff18e4b0353b0d942ec6f Mon Sep 17 00:00:00 2001 From: Marcy Sutton Date: Tue, 15 Aug 2017 12:48:46 -0700 Subject: [PATCH] fix: copy precommit hook as file, not a link --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f37278c216..66b84a9f1a 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ "test-fast": "grunt test-fast", "version": "node build/sri-update", "prepublishOnly": "grunt build && node build/sri-update --validate", - "postinstall": "ln -s -f node_modules/angular-precommit/index.js .git/hooks/commit-msg" + "postinstall": "cd .git/hooks/ && cp ../../node_modules/angular-precommit/index.js commit-msg && cd ../../" }, "devDependencies": { "angular-precommit": "^1.0.3",