Skip to content

Commit

Permalink
fix: do not search for subdirectories, it is the presets responsibili…
Browse files Browse the repository at this point in the history
…ty to search for sub-commands
  • Loading branch information
rodoabad committed Aug 26, 2017
1 parent ca42f4a commit 2416beb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/preset-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ const backslashSoup = pattern => new RegExp(pattern.replace(/\\/g, '\\\\'));
module.exports = (presets = []) => ({
extensions: ['js'],
include: dirPath => presets.some(preset => backslashSoup(`(\\|/)(katulong-preset-${preset})+(\\|/)lib(\\|/)index.js$`).test(dirPath)),
recurse: true
recurse: false
});
2 changes: 1 addition & 1 deletion test/unit/src/preset-options.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ describe('Given the yargs `commandDir` options object for katulong presets', ()

it('should look for subdirectories', () => {

expect(presetOptions().recurse).true();
expect(presetOptions().recurse).false();

});

Expand Down

0 comments on commit 2416beb

Please sign in to comment.