Update bun

This commit is contained in:
redphx
2024-07-08 08:06:54 +07:00
parent a06d061409
commit c6acc251ae
3 changed files with 5 additions and 2 deletions

View File

@@ -4,6 +4,7 @@ import { parseArgs } from "node:util";
import { sys } from "typescript";
import txtScriptHeader from "./src/assets/header_script.txt" with { type: "text" };
import txtMetaHeader from "./src/assets/header_meta.txt" with { type: "text" };
import { assert } from "node:console";
enum BuildTarget {
ALL = 'all',
@@ -24,6 +25,8 @@ const postProcess = (str: string): string => {
// Add ADDITIONAL CODE block
str = str.replace('var DEFAULT_FLAGS', '\n/* ADDITIONAL CODE */\n\nvar DEFAULT_FLAGS');
assert(str.includes('/* ADDITIONAL CODE */'));
return str;
}