lalalambda icon indicating copy to clipboard operation
lalalambda copied to clipboard

Lalalambda doesn't include its handler in certain scenarios

Open afgallo opened this issue 6 years ago • 0 comments

When using a combination of serverless config settings such as the below:

package:
  individually: true

functions:
  function-name:
    package:
        include:
          - lib/module/index.js
        exclude:
          - lib/otherModule/**
          - _lalalambda/**

Lalalambda doesn't include its handler by default, the reason being that in the config settings above, only the files needed for the function were to be included.

A simple configuration fix can be applied (as shown below), however, lalalambda can potentially deal with this directly.

package:
  individually: true

functions:
  function-name:
    package:
        include:
          - _lalalambda/function-name.js
          - lib/module/index.js
        exclude:
          - lib/otherModule/**
          - _lalalambda/**

@devinivy I'm happy to help here so if you can please give me a few pointers I can try and send a PR your way!

afgallo avatar Nov 13 '19 02:11 afgallo