Skip to content

Instantly share code, notes, and snippets.

@msimerson
Created July 7, 2015 00:56
Show Gist options
  • Save msimerson/e0b5b353aaac9b770a74 to your computer and use it in GitHub Desktop.
Save msimerson/e0b5b353aaac9b770a74 to your computer and use it in GitHub Desktop.
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