Skip to content

Commit

Permalink
Fixed some exclusions and finish 2.0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Mosnar committed May 4, 2020
1 parent 0bb11f1 commit 7741ae4
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"test": "jest",
"docs": "serve ./docs"
},
"version": "2.0.3",
"version": "2.0.3.1",
"private": false,
"license": "MIT",
"dependencies": {},
Expand Down
12 changes: 11 additions & 1 deletion serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ layers:
retain: false

resources:
Conditions:
Conditions:
CreateCertificate: !Not [!Equals ["${self:custom.settings.environment.CUSTOM_DOMAIN, ''}", ""]]
Resources:
CloudFrontDistribution:
Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit 7741ae4

Please sign in to comment.