From eeeb0e7fc15e843088eb161ec76215d0b4caaafd Mon Sep 17 00:00:00 2001 From: Fabrizio Ruggeri Date: Fri, 2 Mar 2018 15:35:44 +0100 Subject: [PATCH] Build on npm publish --- package.json | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 898b5f9..e97445a 100644 --- a/package.json +++ b/package.json @@ -2,10 +2,11 @@ "name": "rtc-quickconnect", "version": "5.8.4", "description": "Create a WebRTC connection in record time", - "main": "index.js", + "main": "dist/quickconnect.js", "scripts": { "test": "browserify test/all.js | broth start | tap-spec", - "gendocs": "gendocs > README.md" + "gendocs": "gendocs > README.md", + "prepublish": "grunt dist" }, "repository": { "type": "git", @@ -40,6 +41,7 @@ "getusermedia": "^1.1.0", "grunt": "^0.4.5", "grunt-browserify": "^3.4.0", + "grunt-cli": "^1.2.0", "grunt-contrib-uglify": "^0.9.1", "grunt-contrib-watch": "^0.6.1", "hosted-git-info": "2.5.0", @@ -56,4 +58,4 @@ "uuid": "^2.0.1", "whisk": "^1.0.0" } -} \ No newline at end of file +}