Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mattrobenolt committed Mar 18, 2012
1 parent 8330f01 commit be06ce7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils.js
Expand Up @@ -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/'));
Expand All @@ -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;
};
Expand Down

0 comments on commit be06ce7

Please sign in to comment.