diff --git a/package.json b/package.json index dae4fa957..c9b877f88 100644 --- a/package.json +++ b/package.json @@ -22,8 +22,8 @@ "flow": "if [ ! -e ./.flowconfig ]; then echo \"Could not find .flowconfig\"; else flow; test $? -eq 0 -o $? -eq 2; fi", "lint:fix": "npm run lint -- --fix", "lint": "eslint --config .eslintrc src __tests__ __mocks__ scripts", - "prepublish": "safe-publish-latest && not-in-publish || npm run prepublishOnly", - "prepublishOnly": "npm run lint && npm run flow && npm run jest && npm run build", + "prepublish": "not-in-publish || npm run prepublishOnly", + "prepublishOnly": "safe-publish-latest && npm run lint && npm run flow && npm run jest && npm run build", "pretest": "npm run lint:fix && npm run flow", "test": "npm run jest", "posttest": "aud --production",