From 4c3489fa00891fa51a336e8847d3a7a92598d2dc Mon Sep 17 00:00:00 2001 From: Denis Demchenko Date: Mon, 9 Jul 2018 19:05:19 +0300 Subject: [PATCH] Make sure that it builds before publishing --- .npmignore | 1 - package.json | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.npmignore b/.npmignore index 3db1a3e..ff06ed2 100644 --- a/.npmignore +++ b/.npmignore @@ -3,4 +3,3 @@ src/useragents.js Makefile .nyc_output coverage -dist diff --git a/package.json b/package.json index 5bd97c6..5b9dfdc 100644 --- a/package.json +++ b/package.json @@ -63,6 +63,8 @@ "test": "test" }, "scripts": { + "build": "webpack --config webpack.config.js", + "prepublish": "npm run build", "lint": "eslint ./src --fix", "testem": "testem", "test": "eslint ./src & nyc --reporter=html --reporter=text ava",