diff --git a/build.ts b/build.ts index 1c34eaa..39db8fa 100644 --- a/build.ts +++ b/build.ts @@ -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; } diff --git a/bun.lockb b/bun.lockb index c727382..0931019 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index a155409..d82cf54 100644 --- a/package.json +++ b/package.json @@ -6,8 +6,8 @@ "build": "build.ts" }, "devDependencies": { - "@types/bun": "^1.1.5", - "@types/node": "^20.14.9", + "@types/bun": "^1.1.6", + "@types/node": "^20.14.10", "@types/stylus": "^0.48.42", "stylus": "^0.63.0" },