Add folder for local plugins

This commit is contained in:
Andrew McClenaghan 2016-09-14 18:02:51 +10:00 committed by Eslam A. Hefnawy
parent b2e4215008
commit 0c3bf24ea6

View File

@ -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);