mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
Add folder for local plugins
This commit is contained in:
parent
b2e4215008
commit
0c3bf24ea6
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user