Skip to content

Commit d75d448

Browse files
YannickMeeusalexjoverm
authored andcommitted
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
1 parent 5aa6a84 commit d75d448

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/semantic-release-prepare.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ writeFileSync(
1616
)
1717

1818
// Call husky to set up the hooks
19-
fork(path.resolve(__dirname, "..", "node_modules", "husky", "bin", "install"))
19+
fork(path.resolve(__dirname, "..", "node_modules", "husky", "lib", "installer", 'bin'), ['install'])
2020

2121
console.log()
2222
console.log(colors.green("Done!!"))

0 commit comments

Comments
 (0)