Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

  • Loading branch information...
commit be06ce794ebce99cd7d5a77cf7dc75bc4255b44b 1 parent 8330f01
@mattrobenolt mattrobenolt authored
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;
};
Please sign in to comment.
Something went wrong with that request. Please try again.