mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
fix(build): 🐛 Move JSDom to be external
This commit is contained in:
parent
d884c8cff2
commit
4058ddc08e
5
build.ts
5
build.ts
|
|
@ -17,7 +17,7 @@ await Bun.build({
|
||||||
target: "bun",
|
target: "bun",
|
||||||
splitting: true,
|
splitting: true,
|
||||||
minify: false,
|
minify: false,
|
||||||
external: ["bullmq", "frontend"],
|
external: ["bullmq", "frontend", "jsdom"],
|
||||||
}).then((output) => {
|
}).then((output) => {
|
||||||
if (!output.success) {
|
if (!output.success) {
|
||||||
console.log(output.logs);
|
console.log(output.logs);
|
||||||
|
|
@ -39,6 +39,9 @@ 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 jsdom to dist
|
||||||
|
await $`cp -r node_modules/jsdom dist/node_modules/jsdom`;
|
||||||
|
|
||||||
// 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