Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Layer Service: No file matches include / exclude patterns #5892 #6

Open
ezequiel454 opened this issue May 15, 2020 · 1 comment
Open

Comments

@ezequiel454
Copy link

Hi Hanhal i saw that you already have this issue on serverless/serverless#5892

You manage to solve this with your plugin ? i am using this plugins:

  • '@kingdarboja/serverless-plugin-typescript'
  • serverless-offline-sqs
  • serverless-offline
  • serverless-plugin-layer-manager

package:
individually: true
exclude:
- ""
- "!services/my-services/
"
- "!my-layer/**"

layers:
myLayer:
package:
include:
- ./my-layer/**
path: ./my-layer
name: my-layer
description: My library
retain: true

but nothing work..

@Jeff-Tian
Copy link

I am using this plugin too, and fixed the same issue by the following configuration. The working repo is here: https://github.com/Jeff-Tian/serverless-space.

serverless.yml:

package:
  patterns:
    - '!node_modules/**'
    - '!layers/**'

You need to use patterns instead of include or exclude.

You can smoke the the working repo by

curl https://jqp5j170i6.execute-api.us-east-1.amazonaws.com/dev/users/create

curl https://jqp5j170i6.execute-api.us-east-1.amazonaws.com/dev/api

curl https://jqp5j170i6.execute-api.us-east-1.amazonaws.com/dev/nest/cats

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants