Skip to content

Commit

Permalink
Ignore node_modules directory when scanning for yuidoc.json file
Browse files Browse the repository at this point in the history
  • Loading branch information
davglass committed Jul 6, 2012
1 parent 2a37ef8 commit d1b26bb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/utils.js
Expand Up @@ -235,10 +235,14 @@ var getProjectData = function(dir) {
}
var dirs = fs.readdirSync(dir);
dirs.forEach(function(d) {
var p = path.join(dir, d);
if (d.indexOf('.') === 0) {
return;
}
var p = path.join(dir, d);
if (d === 'node_modules') {
Y.log('Skipping node_modules directory while scanning for yuidoc.json', 'warn', 'yuidoc');
return;
}
if (projectData) {
return;
}
Expand Down

0 comments on commit d1b26bb

Please sign in to comment.