From 653322bd91167fb46ec9ff6ecc666274f8043572 Mon Sep 17 00:00:00 2001 From: misund Date: Tue, 12 Jun 2018 18:16:15 +0200 Subject: [PATCH] build: add prepublish script --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 0b8e92b..750e427 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "build": "babel src -d build", "lint": "eslint --max-warnings=0 src", "mocha": "./node_modules/mocha/bin/mocha --compilers js:babel-core/register", + "prepublish": "yarn build && yarn test", "postpublish": "git push --tags", "test": "yarn lint && yarn mocha" },