Skip to content

Commit

Permalink
Fix loader path to "lib"
Browse files Browse the repository at this point in the history
  • Loading branch information
rprieto committed Feb 20, 2014
1 parent 8a77402 commit 0dce768
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ var changeCase = require('change-case');
// my-module -> streams.myModule
//

var files = wrench.readdirSyncRecursive('lib');
var files = wrench.readdirSyncRecursive(path.join(__dirname, 'lib'));

var streams = files.reduce(function(memo, filepath) {
if (filepath.match(/\.js$/)) {
var name = path.basename(filepath, '.js');
var fullpath = path.resolve(path.join('lib', filepath));
var fullpath = path.resolve(path.join(__dirname, 'lib', filepath));
var key = changeCase.camelCase(name);
memo[key] = require(fullpath);
}
Expand Down

0 comments on commit 0dce768

Please sign in to comment.