From 0c3bf24ea62495629d6ecfc76c880fc284bfda81 Mon Sep 17 00:00:00 2001 From: Andrew McClenaghan Date: Wed, 14 Sep 2016 18:02:51 +1000 Subject: [PATCH] Add folder for local plugins --- lib/classes/PluginManager.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/classes/PluginManager.js b/lib/classes/PluginManager.js index 27bec57c0..af8ec300b 100644 --- a/lib/classes/PluginManager.js +++ b/lib/classes/PluginManager.js @@ -77,7 +77,10 @@ class PluginManager { // we want to load plugins installed locally in the service if (this.serverless && this.serverless.config && this.serverless.config.servicePath) { - module.paths.unshift(path.join(this.serverless.config.servicePath, 'node_modules')); + module.paths.unshift( + path.join(this.serverless.config.servicePath, 'node_modules'), + path.join(this.serverless.config.servicePath, '.serverless_plugins') + ); } this.loadPlugins(servicePlugins);