From 16bbe495d1a0fabfb92ba414e27b1108df3c5b1c Mon Sep 17 00:00:00 2001 From: daurnimator Date: Sat, 31 Mar 2018 12:40:37 +1100 Subject: package.json: Add prepublishOnly script to catch last-minute issues --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index c6f7b83..25c60b8 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ }, "scripts": { "lint": "eslint src/ tests/", + "prepublishOnly": "git diff-index --quiet --cached HEAD -- && npm run lint && npm run test", "test": "tape tests/*.js tests/test-suite/*.js | faucet" }, "repository": { -- cgit v1.2.3-70-g09d2