Skip to content

Commit

Permalink
fix: do search for subdirectories
Browse files Browse the repository at this point in the history
  • Loading branch information
rodoabad committed Aug 26, 2017
1 parent 2416beb commit 4c076e9
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: false
recurse: true
});
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).false();
expect(presetOptions().recurse).true();

});

Expand Down

0 comments on commit 4c076e9

Please sign in to comment.