diff --git a/package.json b/package.json index 8960c6d56e..a5f4ef83c2 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "jest:coverage": "cross-env NODE_ENV=test jest --coverage --reporters=default --reporters=jest-junit --runInBand --forceExit --detectOpenHandles", "jest:watch": "cross-env NODE_ENV=test jest --watch", "lint": "eslint .", - "prepare": "husky install", + "prepare": "node -e \"try { require('husky').install() } catch (e) {if (e.code !== 'MODULE_NOT_FOUND') throw e}\"", "profiling": "NODE_ENV=production node --prof lib/index.js", "start": "node lib/index.js", "test": "npm run format:check && npm run jest:coverage"