Skip to content
Browse files

  • Loading branch information...
1 parent 8330f01 commit be06ce794ebce99cd7d5a77cf7dc75bc4255b44b @mattrobenolt mattrobenolt committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/utils.js
View
2 lib/utils.js
@@ -50,7 +50,6 @@ module.exports.getModules = function getModules() {
if(module_cache) {
return module_cache;
}
- return callback({});
var path = require('path');
var cwd = path.resolve('.');
var folders = fs.readdirSync(path.join(cwd, './node_modules/'));
@@ -62,6 +61,7 @@ module.exports.getModules = function getModules() {
try {
var json = require(path.join(cwd, './node_modules/'+folder+'/package.json'));
module_cache[json.name] = json.version;
+ } catch(e){}
});
return module_cache;
};

0 comments on commit be06ce7

Please sign in to comment.
Something went wrong with that request. Please try again.