From 24efc77770b9e45fdde3457bb7729d299c85e1f0 Mon Sep 17 00:00:00 2001 From: Jesse Wierzbinski Date: Tue, 7 Jan 2025 15:16:51 +0100 Subject: [PATCH] fix: :ambulance: Put Sharp back into the API worker The Attachment processor needs it for metadata --- build.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build.ts b/build.ts index 91974db0..0b11f780 100644 --- a/build.ts +++ b/build.ts @@ -47,6 +47,11 @@ await $`cp plugins/openid/manifest.json dist/plugins/openid/manifest.json`; await $`mkdir -p dist/node_modules`; +// Copy Sharp to dist +await $`mkdir -p dist/node_modules/@img`; +await $`cp -r node_modules/@img/sharp-libvips-linuxmusl-* dist/node_modules/@img`; +await $`cp -r node_modules/@img/sharp-linuxmusl-* dist/node_modules/@img`; + // Copy unzipit and uzip-module to dist await $`cp -r node_modules/unzipit dist/node_modules/unzipit`; await $`cp -r node_modules/uzip-module dist/node_modules/uzip-module`;