From 9bdac82002b30552fca56d3163fad895bc7e8a24 Mon Sep 17 00:00:00 2001 From: Sampsa Saarela Date: Sun, 24 Mar 2019 21:57:04 +0800 Subject: [PATCH] Fixed hasAdditionalStacksPlugin check if using modules in plugins section --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index c28e602d..5b8422b6 100644 --- a/index.js +++ b/index.js @@ -246,7 +246,7 @@ class ServerlessDynamodbLocal { } hasAdditionalStacksPlugin() { - return _.get(this.service, "plugins", []).includes("serverless-plugin-additional-stacks"); + return _.get(this.service, "plugins.modules", _.get(this.service, "plugins", [])).includes("serverless-plugin-additional-stacks") } getTableDefinitionsFromStack(stack) {