From 797e492519ed0bf6270537290e69ca0456790575 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Mon, 22 Feb 2021 09:13:58 -0800 Subject: [PATCH] [meta] only run the build script in publish --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 7f10005..5e6b778 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "./implementation": "./implementation.browser.js" }, "scripts": { - "prepublish": "safe-publish-latest && npm run --silent build", + "prepublish": "safe-publish-latest && (not-in-publish || npm run --silent build)", "pretest": "npm run lint", "test": "npm run --silent tests-only", "posttest": "npx aud --production", @@ -51,6 +51,7 @@ "browserify": "^16.5.2", "eslint": "^7.20.0", "for-each": "^0.3.3", + "in-publish": "^2.0.1", "is": "^3.3.0", "nyc": "^10.3.2", "safe-publish-latest": "^1.1.4",