mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
fix(build): 🐛 Fix build error with unzipit by making it external
This commit is contained in:
parent
5bdb8360ea
commit
692db9a334
6
build.ts
6
build.ts
|
|
@ -18,7 +18,7 @@ await Bun.build({
|
||||||
target: "bun",
|
target: "bun",
|
||||||
splitting: true,
|
splitting: true,
|
||||||
minify: false,
|
minify: false,
|
||||||
external: ["bullmq"],
|
external: ["bullmq", "unzipit"],
|
||||||
}).then((output) => {
|
}).then((output) => {
|
||||||
if (!output.success) {
|
if (!output.success) {
|
||||||
console.log(output.logs);
|
console.log(output.logs);
|
||||||
|
|
@ -43,6 +43,10 @@ await $`mkdir -p dist/node_modules/@img`;
|
||||||
await $`cp -r node_modules/@img/sharp-libvips-linux-* dist/node_modules/@img`;
|
await $`cp -r node_modules/@img/sharp-libvips-linux-* dist/node_modules/@img`;
|
||||||
await $`cp -r node_modules/@img/sharp-linux-* dist/node_modules/@img`;
|
await $`cp -r node_modules/@img/sharp-linux-* 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`;
|
||||||
|
|
||||||
// Copy the Bee Movie script from pages
|
// Copy the Bee Movie script from pages
|
||||||
await $`cp beemovie.txt dist/beemovie.txt`;
|
await $`cp beemovie.txt dist/beemovie.txt`;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue