mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 16:38:19 +01:00
fix: 🚑 Put Sharp back into the API worker
The Attachment processor needs it for metadata
This commit is contained in:
parent
11ba1ab5c8
commit
24efc77770
5
build.ts
5
build.ts
|
|
@ -47,6 +47,11 @@ await $`cp plugins/openid/manifest.json dist/plugins/openid/manifest.json`;
|
||||||
|
|
||||||
await $`mkdir -p dist/node_modules`;
|
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
|
// Copy unzipit and uzip-module to dist
|
||||||
await $`cp -r node_modules/unzipit dist/node_modules/unzipit`;
|
await $`cp -r node_modules/unzipit dist/node_modules/unzipit`;
|
||||||
await $`cp -r node_modules/uzip-module dist/node_modules/uzip-module`;
|
await $`cp -r node_modules/uzip-module dist/node_modules/uzip-module`;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue