Individual package.include have the wrong base folder
geovanisouza92 opened this issue · 1 comments
geovanisouza92 commented
Hi, thank you for this plugin, it helps a lot!
I found a problem while packaging functions: If I set the package.include of that function, usually we use some path from the root of the service (where serverless.yml
lives), but while manipulating the configuration, this line changes the service path, that is used later for packaging.
Long story short:
If I type this on serverless.yml
:
functions:
hello:
handler: aws/hello.handler
events:
- http:
method: any
path: /hello
package:
include:
- .gitignore # this file is on the project root
the final zip does not include it, but if I change to:
package:
include:
- ../.gitignore # relative path from .webpack
It works as expected.
jogold commented
Hi @geovanisouza92,
Thanks for reporting this, I will have a look into it.