diff --git a/package.json b/package.json index 42bcd0018..2c7d56f7f 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "author": "Christopher Jeffrey ", "main": "./lib/bcrypto.js", "scripts": { - "install": "node-gyp rebuild || echo 'Build failed.'", + "install": "node-gyp rebuild || (echo 'Build failed.' && exit 1)", "browserify": "browserify -s bcrypto lib/bcrypto.js | uglifyjs -c > bcrypto.js", "clean": "rm -f bcrypto.js", "lint": "eslint lib/ test/ || exit 0",