Created
July 7, 2015 00:56
-
-
Save msimerson/e0b5b353aaac9b770a74 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/plugins.js b/plugins.js | |
index 4ef6345..fd7d705 100644 | |
--- a/plugins.js | |
+++ b/plugins.js | |
@@ -198,7 +198,9 @@ plugins._load_and_compile_plugin = function (name) { | |
} | |
if (utils.existsSync(__dirname + '/' + module + '.js') || | |
- utils.existsSync(__dirname + '/' + module)) { | |
+ utils.existsSync(__dirname + '/' + module) || | |
+ utils.existsSync(__dirname + '/' + module + '/package.json') | |
+ ) { | |
return require(module); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment