Skip to content

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

@kolanos

Description

@kolanos

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):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions