From 2beec94604f7180836120fff044478c188be5d4d Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Fri, 7 Feb 2020 19:27:19 -1000 Subject: [PATCH] [meta] use `in-publish` in `prepublish` --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 841128fb6..28e45eeb5 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "test": "npm run tests-only", "test-compiled": "npm run prepublish && NODE_PATH=./lib mocha --compilers js:babel-register --recursive tests/src", "test-all": "npm test && for resolver in ./resolvers/*; do cd $resolver && npm test && cd ../..; done", - "prepublish": "npm run build", + "prepublish": "not-in-publish || npm run build", "coveralls": "nyc report --reporter lcovonly && cat ./coverage/lcov.info | coveralls" }, "repository": { @@ -74,6 +74,7 @@ "eslint-module-utils": "file:./utils", "eslint-plugin-eslint-plugin": "^2.2.1", "eslint-plugin-import": "2.x", + "in-publish": "^2.0.0", "linklocal": "^2.8.2", "mocha": "^3.5.3", "nyc": "^11.9.0",