serverless-dynamodb-local icon indicating copy to clipboard operation
serverless-dynamodb-local copied to clipboard

Support enhanced plugins object structure

Open vkartaviy opened this issue 5 years ago • 2 comments

This plugin doesn't support enhanced plugins object throwing below error

TypeError: _.get(...).includes is not a function
    at ServerlessDynamodbLocal.hasAdditionalStacksPlugin (~/node_modules/serverless-dynamodb-local/index.js:249:51)

The serverless plugins section supports two kind of formats:

Array object:

plugins:
  - plugin1
  - plugin2

Enhanced plugins object:

plugins:
  localPath: './custom_serverless_plugins'
  modules:
    - plugin1
    - plugin2

This PR add support for both of them.

vkartaviy avatar May 07 '19 12:05 vkartaviy

@AshanFernando parsePluginsObject was introduced in serverless v1.28.0 so my PR may have compatibility issues with older serverless releases.

vkartaviy avatar May 19 '19 00:05 vkartaviy

What's the status with this?

cyberwombat avatar Oct 14 '19 03:10 cyberwombat