mirror of
https://github.com/thegecko/web-bluetooth-dfu.git
synced 2025-12-15 13:38:12 +08:00
Fix browserify build error
This commit is contained in:
@@ -27,7 +27,8 @@ var bundleIgnore = "webbluetooth";
|
|||||||
var watching = false;
|
var watching = false;
|
||||||
|
|
||||||
// Error handler suppresses exists during watch
|
// Error handler suppresses exists during watch
|
||||||
function handleError() {
|
function handleError(error) {
|
||||||
|
console.log(error.message);
|
||||||
if (watching) this.emit("end");
|
if (watching) this.emit("end");
|
||||||
else process.exit(1);
|
else process.exit(1);
|
||||||
}
|
}
|
||||||
@@ -46,7 +47,7 @@ gulp.task("clean", () => {
|
|||||||
gulp.task("lint", () => {
|
gulp.task("lint", () => {
|
||||||
var program = tslint.Linter.createProgram("./");
|
var program = tslint.Linter.createProgram("./");
|
||||||
|
|
||||||
gulp.src(srcFiles)
|
return gulp.src(srcFiles)
|
||||||
.pipe(gulpTslint({
|
.pipe(gulpTslint({
|
||||||
program: program,
|
program: program,
|
||||||
formatter: "stylish"
|
formatter: "stylish"
|
||||||
|
|||||||
@@ -7,9 +7,6 @@
|
|||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"types": "./types/index.d.ts",
|
"types": "./types/index.d.ts",
|
||||||
"main": "./lib/index.js",
|
"main": "./lib/index.js",
|
||||||
"browser": {
|
|
||||||
"./lib/index.js": "./dist/secure-dfu.js"
|
|
||||||
},
|
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git://github.com/thegecko/web-bluetooth-dfu.git"
|
"url": "git://github.com/thegecko/web-bluetooth-dfu.git"
|
||||||
|
|||||||
Reference in New Issue
Block a user