iopipe / serverless-plugin-iopipe

Automatically wrap your serverless framework functions with IOpipe
https://www.iopipe.com
Apache License 2.0
40 stars 8 forks source link

The iopipe_handlers modules not included in package when exclude/include used #83

Open kolanos opened 6 years ago

kolanos commented 6 years ago

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:

  1. Update a serverless.yml with something like this:
package:
  exclude:
    - ./**
  include:
    - dist/**
  1. sls deploy
  2. 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):

ktwbc commented 5 years ago

+1