Description
If you use exclude and include in the package section of the serverless.yml then the iopipe_handlers modules can be excluded from the resulting package, resulting in a "could not find module" error.
Steps to reproduce the issue:
- Update a
serverless.yml with something like this:
package:
exclude:
- ./**
include:
- dist/**
sls deploy
- Notice that invocations fail with a "could not find iopipe_handlers/..." error.
Describe the results you received:
Handlers return errors reporting that they can't find the respective iopipe_handlers module.
Describe the results you expected:
Expected iopipe_handlers modules to be packaged regardless of exclude/include rules.
Application and library versions
Tested with serverless 1.28.0 and latest version of plugin.
Additional information you deem important (e.g. issue happens only occasionally):