Skip to content

Commit

Permalink
Merge pull request #3 from eulalie367/master
Browse files Browse the repository at this point in the history
Fixed a relative path issue.
  • Loading branch information
stephenhandley committed Aug 17, 2012
2 parents b286e53 + 1aaa79c commit 8836fb3
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 @@ -29,13 +29,13 @@
filename = path.basename(filename, path.extname(filename));
var filepath = path.join(dir, filename);

requires[filename] = require(filepath);
requires[filename] = require(path.resolve(filepath));
});

} else {
basenames.forEach(function(basename) {
var filepath = path.join(dir, basename);
requires[basename] = require(filepath);
requires[filename] = require(path.resolve(filepath));
});
}

Expand Down

0 comments on commit 8836fb3

Please sign in to comment.