Browse Source

ref: ring bell earlier

Sv443 6 months ago
parent
commit
2085540025
2 changed files with 2 additions and 2 deletions
  1. 1 0
      src/components/MarkdownDialog.ts
  2. 1 2
      src/tools/post-build.ts

+ 1 - 0
src/components/MarkdownDialog.ts

@@ -4,6 +4,7 @@ import { consumeStringGen } from "../utils/misc.js";
 import { BytmDialog, type BytmDialogOptions } from "./BytmDialog.js";
 import type { StringGen } from "../types.js";
 
+/** Options for the MarkdownDialog - a `body` prop is required instead of `renderBody` */
 type MarkdownDialogOptions = Omit<BytmDialogOptions, "renderBody"> & {
   /** The markdown to render */
   body: StringGen;

+ 1 - 2
src/tools/post-build.ts

@@ -154,6 +154,7 @@ I welcome every contribution on GitHub!
     const finalUserscript = `${header}\n${await getLinkedPkgs()}${userscript}${userscript.endsWith("\n") ? "" : "\n"}`;
 
     await writeFile(scriptPath, finalUserscript);
+    ringBell && stdout.write("\u0007");
 
     const envText = `${mode === "production" ? "\x1b[32m" : "\x1b[33m"}${mode}`;
     const sizeKiB = Number((Buffer.byteLength(finalUserscript, "utf8") / 1024).toFixed(2));
@@ -180,8 +181,6 @@ I welcome every contribution on GitHub!
     console.info(`Userscript URL: \x1b[34m\x1b[4m${devServerUserscriptUrl}\x1b[0m`);
     console.info();
 
-    ringBell && stdout.write("\u0007");
-
     const buildStatsNew: BuildStats = {
       sizeKiB,
       mode,