Skip to content

Commit cbf53ec

Browse files
committed
fix for running under CLI
1 parent 97ba433 commit cbf53ec

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/apploader.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ function fileGetter(url) {
9090
var f = url.slice(0,-5);
9191
console.log("MINIFYING JSON "+f);
9292
var j = eval("("+require("fs").readFileSync(url).toString("binary")+")");
93-
data = JSON.stringify(j);
93+
data = JSON.stringify(j); // FIXME we can do better for Espruino
9494
} else {
9595
var blob = require("fs").readFileSync(url);
9696
if (url.endsWith(".js") || url.endsWith(".json"))
@@ -117,7 +117,8 @@ exports.getAppFiles = function(app) {
117117
app.files = app.files.split(",").concat(app.provides_modules).join(",");
118118
}
119119
return AppInfo.getFiles(app, getFileOptions).then(files => { allFiles = allFiles.concat(files); return app; });
120-
}
120+
},
121+
showQuery : () => Promise.resolve()
121122
};
122123
return AppInfo.checkDependencies(app, device, uploadOptions).
123124
then(() => AppInfo.getFiles(app, getFileOptions)).

0 commit comments

Comments
 (0)