From 94cb8b6c085fbcb9f7bd936313563a3167d6c0c5 Mon Sep 17 00:00:00 2001 From: Rob Moran Date: Sat, 6 Jan 2018 00:33:54 +0000 Subject: [PATCH] Fix browserify build error --- gulpfile.js | 5 +++-- package.json | 3 --- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 34f5f4e..5f7433e 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -27,7 +27,8 @@ var bundleIgnore = "webbluetooth"; var watching = false; // Error handler suppresses exists during watch -function handleError() { +function handleError(error) { + console.log(error.message); if (watching) this.emit("end"); else process.exit(1); } @@ -46,7 +47,7 @@ gulp.task("clean", () => { gulp.task("lint", () => { var program = tslint.Linter.createProgram("./"); - gulp.src(srcFiles) + return gulp.src(srcFiles) .pipe(gulpTslint({ program: program, formatter: "stylish" diff --git a/package.json b/package.json index a67dec8..117393c 100644 --- a/package.json +++ b/package.json @@ -7,9 +7,6 @@ "license": "MIT", "types": "./types/index.d.ts", "main": "./lib/index.js", - "browser": { - "./lib/index.js": "./dist/secure-dfu.js" - }, "repository": { "type": "git", "url": "git://github.com/thegecko/web-bluetooth-dfu.git"