diff --git a/.changeset/short-melons-tickle.md b/.changeset/short-melons-tickle.md new file mode 100644 index 000000000..d2116aa23 --- /dev/null +++ b/.changeset/short-melons-tickle.md @@ -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). diff --git a/template/lambda-sqs-worker/serverless.yml b/template/lambda-sqs-worker/serverless.yml index 28ee10380..5dd4ee051 100644 --- a/template/lambda-sqs-worker/serverless.yml +++ b/template/lambda-sqs-worker/serverless.yml @@ -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: