diff --git a/index.js b/index.js index d1b4127..3a293ed 100644 --- a/index.js +++ b/index.js @@ -50,7 +50,7 @@ module.exports = function(options) { requireFn = require; } - configObject = (typeof config === 'string') ? require(config) : config; + configObject = (typeof config === 'string') ? requireFn(config) : config; if(!configObject) { throw new Error('Could not find dependencies. Do you have a package.json file in your project?'); diff --git a/package.json b/package.json index 7f685e0..6309448 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,8 @@ "Connor Peet", "Dorian Camilleri", "Carlos Henrique", - "iamfrontender " + "iamfrontender ", + "mwessner" ], "license": "MIT", "dependencies": {