mirror of
https://github.com/versia-pub/server.git
synced 2026-04-27 20:59:15 +02:00
More Sharp fixes
This commit is contained in:
parent
8473062c24
commit
8eb6fba897
6 changed files with 6 additions and 7 deletions
5
build.ts
5
build.ts
|
|
@ -26,7 +26,7 @@ await Bun.build({
|
|||
target: "bun",
|
||||
splitting: true,
|
||||
minify: false,
|
||||
external: ["bullmq", "@prisma/client", "sharp"],
|
||||
external: ["bullmq", "@prisma/client"],
|
||||
}).then((output) => {
|
||||
if (!output.success) {
|
||||
console.log(output.logs);
|
||||
|
|
@ -46,8 +46,7 @@ await $`cp -r ${process.cwd()}/node_modules/.bin/prisma dist/node_modules/.bin`;
|
|||
await $`cp -r ${process.cwd()}/node_modules/prisma dist/node_modules/`;
|
||||
|
||||
// Copy Sharp to dist
|
||||
// await $`cp -r ${process.cwd()}/node_modules/@img dist/node_modules/`;
|
||||
await $`cp -r ${process.cwd()}/node_modules/sharp dist/node_modules/`;
|
||||
await $`cp -r ${process.cwd()}/node_modules/sharp/build/ .`;
|
||||
|
||||
// Create pages directory
|
||||
await $`mkdir -p dist/pages/dist`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue