Skip to content

Commit 8bd8f5b

Browse files
committed
v34.x updates for x64 and arm64
1 parent e7294ac commit 8bd8f5b

File tree

5 files changed

+12
-9
lines changed

5 files changed

+12
-9
lines changed

.github/workflows/build-layers.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ jobs:
5656
- name: Package Lambda layer (${{ matrix.arch }})
5757
run: |
5858
mkdir -p nodejs/node_modules/sharp/lib
59-
mv index.js nodejs/node_modules/sharp/lib/
6059
mv node_modules/sharp/package.json nodejs/node_modules/sharp/
61-
mv node_modules/sharp/LICENSE nodejs/node_modules/sharp/
60+
mv index.js nodejs/node_modules/sharp/lib/
6261
mv node_modules/sharp/lib/index.d.ts nodejs/node_modules/sharp/lib/
62+
mv node_modules/sharp/LICENSE nodejs/node_modules/sharp/
6363
mv node_modules/@img nodejs/node_modules/ || true
6464
zip -r release-${{ matrix.arch }} nodejs
6565

LICENSE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ recommend that a file or class name and description of purpose be included on
179179
the same “printed page” as the copyright notice for easier identification within
180180
third-party archives.
181181

182+
182183
Copyright 2025 Chris Schuld ([email protected])
183184

184185
Licensed under the Apache License, Version 2.0 (the "License");

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# AWS Sharp Lambda Layer (x86\_64 and arm64)
22

3+
[![GitHub tag](https://img.shields.io/github/tag/cbschuld/sharp-aws-lambda-layer?include_prereleases=&sort=semver&color=blue)](https://github.com/cbschuld/sharp-aws-lambda-layer/releases/)
4+
[![License](https://img.shields.io/badge/License-Apache_2.0-blue)](#license)
5+
[![Build](https://github.com/cbschuld/sharp-aws-lambda-layer/workflows/Build%20lambda%20layer%20for%20sharp/badge.svg)](https://github.com/cbschuld/sharp-aws-lambda-layer/actions?query=workflow:"Build+lambda+layer+for+sharp")
6+
37
Prebuilt Sharp AWS Lambda Layer for Node.js 18, 20, and 22. Optimized, bundled, and minified Sharp binaries for x86_64 and arm64 architectures. Improve cold starts with lightweight Sharp builds, ready for Serverless Framework, AWS SAM, and SST deployments.
48

59
## About
@@ -15,9 +19,9 @@ A pre-built [sharp](https://www.npmjs.com/package/sharp) AWS Lambda layer optimi
1519
## Features
1620

1721
- Separate builds for `x64` and `arm64`.
18-
- Auto-release on new `sharp` versions.
19-
- Fully optimized for AWS Lambda cold start times.
20-
- Ideal for use with SST, AWS SAM, and Serverless Framework.
22+
- Daily checks designed to auto-release on new `sharp` versions.
23+
- Optimized for cold starts on AWS Lambda.
24+
- Ideal for use with AWS SAM, SST and Serverless Framework.
2125

2226
## Why Separate Builds?
2327

@@ -104,8 +108,6 @@ cd sharp-aws-lambda-layer
104108
# Follow the GitHub Actions workflows for build instructions.
105109
```
106110

107-
(No local package.json is provided.)
108-
109111
## License
110112

111113
Apache License 2.0 - [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)

test.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ await sharp({
88
}
99
}).toFile('test.png')
1010

11-
console.log('Sharp Works!')
11+
console.log('Sharp Works! (test.png was created)')

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.34.1
1+
0.0.0

0 commit comments

Comments
 (0)