summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2018-03-31 12:40:37 +1100
committerdaurnimator <quae@daurnimator.com>2018-03-31 12:41:29 +1100
commit16bbe495d1a0fabfb92ba414e27b1108df3c5b1c (patch)
treed49a97d8bbdf537659fc9218711bb6c87387f8fb
parent98e65dc93dd32a7c42ebe9a02a3e9207f2a4c0c4 (diff)
downloadfengari-16bbe495d1a0fabfb92ba414e27b1108df3c5b1c.tar.gz
fengari-16bbe495d1a0fabfb92ba414e27b1108df3c5b1c.tar.bz2
fengari-16bbe495d1a0fabfb92ba414e27b1108df3c5b1c.zip
package.json: Add prepublishOnly script to catch last-minute issues
-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": {