File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ function fileGetter(url) {
90
90
var f = url . slice ( 0 , - 5 ) ;
91
91
console . log ( "MINIFYING JSON " + f ) ;
92
92
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
94
94
} else {
95
95
var blob = require ( "fs" ) . readFileSync ( url ) ;
96
96
if ( url . endsWith ( ".js" ) || url . endsWith ( ".json" ) )
@@ -117,7 +117,8 @@ exports.getAppFiles = function(app) {
117
117
app . files = app . files . split ( "," ) . concat ( app . provides_modules ) . join ( "," ) ;
118
118
}
119
119
return AppInfo . getFiles ( app , getFileOptions ) . then ( files => { allFiles = allFiles . concat ( files ) ; return app ; } ) ;
120
- }
120
+ } ,
121
+ showQuery : ( ) => Promise . resolve ( )
121
122
} ;
122
123
return AppInfo . checkDependencies ( app , device , uploadOptions ) .
123
124
then ( ( ) => AppInfo . getFiles ( app , getFileOptions ) ) .
You can’t perform that action at this time.
0 commit comments