summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--package.json1
1 files changed, 1 insertions, 0 deletions
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": {