diff --git a/package.json b/package.json index 8d44d55..6dacbf7 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "test": "npm run build && npm run mocha", "mocha": "mocha --compilers js:babel-core/register test/src/**", "build": "babel src --out-dir lib", - "prepublish": "npm run test" + "prepublish": "in-publish && npm run test || not-in-publish" }, "author": "", "license": "Apache-2.0", @@ -33,6 +33,7 @@ "bluebird": "~3.3.5", "debug": "~2.2.0", "elasticsearch": "~11.0.1", + "in-publish": "~2.0.0", "lodash": "~4.11.1", "moment": "~2.10.6", "puid": "~1.0.5"