diff --git a/package.json b/package.json index 2e27c62..3db7e05 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "main": "index.js", "scripts": { "preversion": "auto-changelog", - "prepublish": "safe-publish-latest", + "prepublish": "not-in-publish || safe-publish-latest", "lint": "eslint .", "pretest": "npm run lint", "tests-only": "node test", @@ -42,6 +42,7 @@ "auto-changelog": "^1.14.1", "eslint": "^6.1.0", "has-symbols": "^1.0.0", + "in-publish": "^2.0.0", "object-inspect": "^1.6.0", "safe-publish-latest": "^1.1.2", "tape": "^4.11.0"