Skip to content

Commit

Permalink
fix index.js to use __dirname
Browse files Browse the repository at this point in the history
  • Loading branch information
ganimomer committed Sep 6, 2015
1 parent 4c7958e commit a6ffdaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
var fs = require('fs');
var path = require('path');
var _ = require('lodash');
var rules = fs.readdirSync(path.resolve('lib', 'rules')).map(function (f) {
var rules = fs.readdirSync(path.resolve(__dirname, 'lib', 'rules')).map(function (f) {
return f.replace(/\.js$/, '');
});

Expand Down

0 comments on commit a6ffdaa

Please sign in to comment.