server/nix/fix-build-spinner.patch

34 lines
830 B
Diff
Raw Permalink Normal View History

2024-08-15 23:58:07 +02:00
diff --git a/build.ts b/build.ts
index 3b3ebe9..9531121 100644
--- a/build.ts
+++ b/build.ts
@@ -1,10 +1,10 @@
import { $ } 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`;
+// await $`rm -rf dist && mkdir dist`;
await Bun.build({
entrypoints: [
@@ -25,7 +25,7 @@ await Bun.build({
}
});
-buildSpinner.text = "Transforming";
+// buildSpinner.text = "Transforming";
// Copy Drizzle migrations to dist
await $`cp -r drizzle dist/drizzle`;
@@ -49,4 +49,4 @@ await $`cp package.json dist/package.json`;
// Copy cli/theme.json
await $`cp cli/theme.json dist/cli/theme.json`;
-buildSpinner.stop();
+// buildSpinner.stop();