From dea136fab576ad1aaf1d0bea9f13bc6f38615162 Mon Sep 17 00:00:00 2001 From: Guillaume Vincent Date: Thu, 10 Nov 2016 16:27:04 +0100 Subject: [PATCH] build before publish on npm --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index b68ce2f..4e91c7b 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,8 @@ "scripts": { "dev": "npm install && webpack-dev-server --inline --hot --host 0.0.0.0", "build": "rm -rf dist && NODE_ENV=production webpack --display-error-details --progress --hide-modules", - "test": "ava test --compilers js:babel-register" + "test": "ava test --compilers js:babel-register", + "prepublish": "npm test && npm run build" }, "dependencies": { "axios": "^0.15.2",