Skip to content

Commit

Permalink
Switch to Serverless package.patterns (#415)
Browse files Browse the repository at this point in the history
  • Loading branch information
72636c authored Apr 14, 2021
1 parent bbaef53 commit 6797255
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 7 additions & 0 deletions .changeset/short-melons-tickle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'skuba': patch
---

**template/lambda-sqs-worker:** Use new `serverless.yml#/package/patterns` property

The `package.exclude` and `package.include` properties [will be removed in Serverless v3](https://github.com/serverless/serverless/blob/v2.32.0/docs/deprecations.md#new-way-to-define-packaging-patterns).
7 changes: 3 additions & 4 deletions template/lambda-sqs-worker/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,10 @@ provider:
seek:source:url: 'https://github.com/SEEK-Jobs/<%- repoName %>'

package:
exclude:
- ./**
- '!node_modules/**'
include:
patterns:
- '!**'
- lib/**
- node_modules/**

functions:
Worker:
Expand Down

0 comments on commit 6797255

Please sign in to comment.