From d75d4480604eb39fbcc46b273f42c2e9f64234de Mon Sep 17 00:00:00 2001 From: Yannick Meeus Date: Tue, 29 Jan 2019 17:32:33 +0100 Subject: [PATCH] Fix husky wire-up in semantic-release-prepare script (#266) As of Husky 1.x, the node_modules directory structure changed somewhat. The semantic-release-prepare script did not take this into account and, as a result of this, could not run to completion. Addresses #251 --- tools/semantic-release-prepare.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/semantic-release-prepare.ts b/tools/semantic-release-prepare.ts index 6c74d078..db14dd77 100644 --- a/tools/semantic-release-prepare.ts +++ b/tools/semantic-release-prepare.ts @@ -16,7 +16,7 @@ writeFileSync( ) // Call husky to set up the hooks -fork(path.resolve(__dirname, "..", "node_modules", "husky", "bin", "install")) +fork(path.resolve(__dirname, "..", "node_modules", "husky", "lib", "installer", 'bin'), ['install']) console.log() console.log(colors.green("Done!!"))