diff --git a/package.json b/package.json index 5c606410..0eb28579 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "codecov": "codecov", "test": "npm run build && jest", "test-coverage": "jest --coverage --globals \"{\\\"coverage\\\":true}\" && codecov", - "prepublish": "npm test" + "prepublish": "in-publish && npm test || not-in-publish" }, "devDependencies": { "@sentry/node": "^4.3.0", @@ -35,6 +35,7 @@ "glob": "^7.1.3", "got": "^9.3.2", "graphql": "^14.0.2", + "in-publish": "^2.0.0", "ioredis": "^4.2.0", "isomorphic-unfetch": "^3.0.0", "jest": "^23.6.0",