Fix browserify build error

This commit is contained in:
Rob Moran
2018-01-06 00:33:54 +00:00
parent b0c46e9c7e
commit 94cb8b6c08
2 changed files with 3 additions and 5 deletions

View File

@@ -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"