Skip to content

Commit

Permalink
chore(prepare.js): guard husky install errors
Browse files Browse the repository at this point in the history
This is most relevant when installing via npm link.
  • Loading branch information
floryst committed Oct 1, 2021
1 parent 3cea091 commit 3079b47
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Utilities/prepare.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
if (process.env.CI === undefined) {
require('husky').install();
try {
require('husky').install();
} catch (e) {
// error out, but don't break install
console.warn('[husky warning]:', e.message);
}
}

0 comments on commit 3079b47

Please sign in to comment.