Skip to content

can not add directory using includePaths #48

@nirmalgoswami

Description

@nirmalgoswami

s-function.json

"handler": "handler.handler",
"custom": {
    "optimize": {
        "exclude": [
        "aws-sdk"
      ],
      "includePaths": [
        "api/lib"
      ]

    }
  },

folder structure

projectname
  - _meta
  - node_modules
  - api(parent folder of all lambda functions)
      -- lib
      -- functioname(sharing s-function.json of this function)

  - package.json
  - s-project.json
  - s-resources-cf.json

got following error

Serverless:   functioname: ENOENT: no such file or directory, lstat 'E:\wamp\www\projectname\_meta\_tmp\functioname@1461748890741\api\lib

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions