From e95563a5269eed02dda6ba4f72eea92cc1c330a6 Mon Sep 17 00:00:00 2001 From: Nicolas Cuillery Date: Sun, 12 Apr 2020 14:29:11 -0400 Subject: [PATCH] Chore: Run prepublish only before publishing The prepublish script is run on install or add. Apparently this is the standard behavior. See https://github.com/yarnpkg/yarn/issues/3209 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index cfded70..d1128bd 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "format:check": "prettier . --check", "format:write": "prettier . --write", - "prepublish": "yarn format:check && yarn test && tsc", + "prepublishOnly": "yarn format:check && yarn test && tsc", "pretest": "jest --clearCache", "test": "jest" },