Skip to content

Commit 420bd67

Browse files
committed
Merge pull request #104 from mwessner/'configObject'-initialization
Changed 'configObject' initilization statement to call 'requireFn()' …
2 parents 440ca65 + 338852a commit 420bd67

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ module.exports = function(options) {
5050
requireFn = require;
5151
}
5252

53-
configObject = (typeof config === 'string') ? require(config) : config;
53+
configObject = (typeof config === 'string') ? requireFn(config) : config;
5454

5555
if(!configObject) {
5656
throw new Error('Could not find dependencies. Do you have a package.json file in your project?');

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
"Connor Peet",
3232
"Dorian Camilleri",
3333
"Carlos Henrique",
34-
"iamfrontender <[email protected]>"
34+
"iamfrontender <[email protected]>",
35+
"mwessner"
3536
],
3637
"license": "MIT",
3738
"dependencies": {

0 commit comments

Comments
 (0)