mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
Change Sharp versions
This commit is contained in:
parent
27260dff68
commit
eab8b1ab63
5
build.ts
5
build.ts
|
|
@ -1,6 +1,5 @@
|
|||
// Delete dist directory
|
||||
import { $ } from "bun";
|
||||
import { exists, mkdir, rm } from "node:fs/promises";
|
||||
import { rawRoutes } from "~routes";
|
||||
|
||||
console.log("Building frontend...");
|
||||
|
|
@ -43,7 +42,9 @@ 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/sharp/build/ .`;
|
||||
await $`mkdir -p dist/node_modules/@img`;
|
||||
await $`cp -r node_modules/@img/sharp-libvips-linux-x64 dist/node_modules/@img`;
|
||||
await $`cp -r node_modules/@img/sharp-linux-x64 dist/node_modules/@img`;
|
||||
|
||||
// Copy Vite build output to dist
|
||||
await $`cp -r packages/frontend/.output dist/frontend`;
|
||||
|
|
|
|||
|
|
@ -48,9 +48,13 @@
|
|||
},
|
||||
"trustedDependencies": [
|
||||
"@biomejs/biome",
|
||||
"@fortawesome/fontawesome-common-types",
|
||||
"@fortawesome/free-regular-svg-icons",
|
||||
"@fortawesome/free-solid-svg-icons",
|
||||
"@prisma/client",
|
||||
"@prisma/engines",
|
||||
"esbuild",
|
||||
"json-editor-vue",
|
||||
"msgpackr-extract",
|
||||
"nuxt-app",
|
||||
"prisma",
|
||||
|
|
@ -59,6 +63,7 @@
|
|||
],
|
||||
"devDependencies": {
|
||||
"@biomejs/biome": "1.6.4",
|
||||
"@img/sharp-wasm32": "^0.33.3",
|
||||
"@julr/unocss-preset-forms": "^0.1.0",
|
||||
"@nuxtjs/seo": "^2.0.0-rc.10",
|
||||
"@nuxtjs/tailwindcss": "^6.11.4",
|
||||
|
|
@ -121,6 +126,7 @@
|
|||
"prisma-redis-middleware": "^4.8.0",
|
||||
"request-parser": "workspace:*",
|
||||
"semver": "^7.5.4",
|
||||
"sharp": "^0.33.3",
|
||||
"strip-ansi": "^7.1.0"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@
|
|||
"main": "index.ts",
|
||||
"dependencies": {
|
||||
"@jsr/bradenmacdonald__s3-lite-client": "npm:@jsr/bradenmacdonald__s3-lite-client",
|
||||
"config-manager": "workspace:*",
|
||||
"sharp": "0.32.6"
|
||||
"config-manager": "workspace:*"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue