From 74f1be7a8e58aa312286526f10616cfc589986ed Mon Sep 17 00:00:00 2001 From: hustcc Date: Mon, 29 Jan 2018 14:06:36 +0800 Subject: [PATCH] run test before build --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 58d9c60..8202ed0 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "test": "npm run lint && npm run cover", "demo": "webpack", "dev": "webpack --watch", - "build": "npm run clean && cross-env NODE_ENV=production babel src -d lib && npm run demo", + "build": "npm run test && npm run clean && cross-env NODE_ENV=production babel src -d lib && npm run demo", "cover": "jest --coverage", "coveralls": "cat ./coverage/lcov.info | coveralls" },