diff --git a/lib/readfile.js b/lib/readfile.js index 98a63e7..be862fa 100644 --- a/lib/readfile.js +++ b/lib/readfile.js @@ -25,6 +25,9 @@ module.exports = function(file) { // JS / JSON / CoffeeScript if (ext.match(/json|js|coffee|ls/)) { + if (!path.isAbsolute(file)) { + file = path.join(process.cwd(), file) + } return require(file); }