From 7741ae48cb98e4ab4dcae2100d0fc8fa2b97e87d Mon Sep 17 00:00:00 2001 From: Ransom Date: Mon, 4 May 2020 14:34:40 -0400 Subject: [PATCH] Fixed some exclusions and finish 2.0.3.1 --- CHANGELOG.md | 6 ++++++ package.json | 2 +- serverless.yml | 12 +++++++++++- 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 55e7bce..65e6644 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [2.0.3.1] - 2020-05-04 + +### Fixed +- Fixed bug with Serverless not excluding dev-dependencies and failing to deploy due to large file size +- Fixed bug with Sharp binaries (Thanks @bs-thomas) (#63) + ## [2.0.3] - 2020-05-04 ### Added diff --git a/package.json b/package.json index f5fc4dd..6780aee 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "test": "jest", "docs": "serve ./docs" }, - "version": "2.0.3", + "version": "2.0.3.1", "private": false, "license": "MIT", "dependencies": {}, diff --git a/serverless.yml b/serverless.yml index e33ea68..87e7ae1 100644 --- a/serverless.yml +++ b/serverless.yml @@ -25,7 +25,7 @@ layers: retain: false resources: - Conditions: + Conditions: CreateCertificate: !Not [!Equals ["${self:custom.settings.environment.CUSTOM_DOMAIN, ''}", ""]] Resources: CloudFrontDistribution: @@ -75,6 +75,16 @@ resources: ValidationMethod: DNS functions: index: + package: + individually: true + excludeDevDependencies: true + browser: false + exclude: + - node_modules/** + - docs/** + - .idea/** + - bin/darwin/** + - coverage/** handler: src/index.handler layers: - {Ref: SharpLambdaLayer}