fix for empty plugins property in serverless.yml

This commit is contained in:
ac360 2016-11-04 07:21:16 -07:00
parent 38d70ed12f
commit c8a9b3cf6d

View File

@ -73,7 +73,7 @@ class PluginManager {
}
loadServicePlugins(servicePlugs) {
const servicePlugins = (typeof servicePlugs !== 'undefined' ? servicePlugs : []);
const servicePlugins = (servicePlugs && typeof servicePlugs !== 'undefined' ? servicePlugs : []);
// we want to load plugins installed locally in the service
if (this.serverless && this.serverless.config && this.serverless.config.servicePath) {