From 862c3f6822b3ce2975270e5d631c9084404ee84d Mon Sep 17 00:00:00 2001 From: jos Date: Sun, 1 Sep 2019 17:39:40 +0200 Subject: [PATCH] Add `prepublishOnly` script running test and build before publish --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index ba57537..ecb4410 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,8 @@ "minify": "gulp minify", "start": "gulp watch", "test": "mocha test --require @babel/register", - "lint": "standard --env=mocha" + "lint": "standard --env=mocha", + "prepublishOnly": "npm test && npm run build" }, "dependencies": { "ajv": "6.10.2",