diff --git a/package.json b/package.json index 841128fb6..28e45eeb5 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "test": "npm run tests-only", "test-compiled": "npm run prepublish && NODE_PATH=./lib mocha --compilers js:babel-register --recursive tests/src", "test-all": "npm test && for resolver in ./resolvers/*; do cd $resolver && npm test && cd ../..; done", - "prepublish": "npm run build", + "prepublish": "not-in-publish || npm run build", "coveralls": "nyc report --reporter lcovonly && cat ./coverage/lcov.info | coveralls" }, "repository": { @@ -74,6 +74,7 @@ "eslint-module-utils": "file:./utils", "eslint-plugin-eslint-plugin": "^2.2.1", "eslint-plugin-import": "2.x", + "in-publish": "^2.0.0", "linklocal": "^2.8.2", "mocha": "^3.5.3", "nyc": "^11.9.0",