From 2313d072dabe5d6285706cec6ed972406c681565 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milan=20Vesi=C4=87?= Date: Sat, 9 Apr 2016 08:05:15 +0100 Subject: [PATCH 1/2] Changed 'configObject' initilization statement to call 'requireFn()' function (instead of 'require()') when the 'config' option is provided as a string. --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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?'); From 338852a4ea391384a812ba8fe712fb59dd1c39da Mon Sep 17 00:00:00 2001 From: mwessner Date: Tue, 12 Apr 2016 21:13:30 +0200 Subject: [PATCH 2/2] Update package.json --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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": {