I am attempting to organize my project in the following structure:
root
- serverless.yml
- functions
- function-name
- handler.js
- function.yml
- function-name
- node_modules
…
I reference the functions in the main serverless.yml:
functions:
- ${file(./functions/function-name/function.yml)}
and in the function.yml I am attempting to include only the files I will need
FunctionName:
name: ${self:provider.stage}_fnName
description:
handler: handler.doSomething
package:
invididually: true
excludeDevDependencies: true
exclude:
- "**/"
include:
- handler.js
- …/…/node_modules/somepkg/
but I keep getting the following error:
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Issues: forum.serverless.com
Your Environment Information -----------------------------
OS: darwin
Node Version: 8.11.2
Serverless Version: 1.27.3
I have tried various path configurations on node_modules but it appears as soon as I enter the include/exclude in the function, or:
package:
individually: true
excludeDevDependencies: true
exclude:
- “**/*”
in the serverless.yml I get the error?