Skip to content

Commit

Permalink
Fix husky wire-up in semantic-release-prepare script (#266)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
YannickMeeus authored and alexjoverm committed Jan 29, 2019
1 parent 5aa6a84 commit d75d448
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/semantic-release-prepare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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!!"))
Expand Down

0 comments on commit d75d448

Please sign in to comment.