mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 16:38:19 +01:00
35 lines
1 KiB
Diff
35 lines
1 KiB
Diff
diff --git a/build.ts b/build.ts
|
|
index a4ad17b2..516b55bf 100644
|
|
--- a/build.ts
|
|
+++ b/build.ts
|
|
@@ -1,12 +1,12 @@
|
|
import { readdir } from "node:fs/promises";
|
|
import { $ } from "bun";
|
|
import { build } from "bun";
|
|
-import ora from "ora";
|
|
+// import ora from "ora";
|
|
import { routes } from "~/routes";
|
|
|
|
-const buildSpinner = ora("Building").start();
|
|
+// const buildSpinner = ora("Building").start();
|
|
|
|
await $`rm -rf dist && mkdir dist`;
|
|
|
|
// Get all directories under the plugins/ directory
|
|
const pluginDirs = await readdir("plugins", { withFileTypes: true });
|
|
@@ -31,7 +31,7 @@ await build({
|
|
external: ["acorn", "@bull-board/ui"],
|
|
});
|
|
|
|
-buildSpinner.text = "Transforming";
|
|
+// buildSpinner.text = "Transforming";
|
|
|
|
// Fix Bun incorrectly transforming aliased imports
|
|
await $`sed -i 's/var serveStatic = (options) => {/var serveStaticBase = (options) => {/g' dist/*.js`;
|
|
@@ -63,4 +63,4 @@ await $`cp beemovie.txt dist/beemovie.txt`;
|
|
// Copy package.json
|
|
await $`cp package.json dist/package.json`;
|
|
|
|
-buildSpinner.stop();
|
|
+// buildSpinner.stop();
|