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

BIN
bun.lockb

Binary file not shown.

View File

@ -6,8 +6,8 @@
"build": "build.ts" "build": "build.ts"
}, },
"devDependencies": { "devDependencies": {
"@types/bun": "^1.1.5", "@types/bun": "^1.1.6",
"@types/node": "^20.14.9", "@types/node": "^20.14.10",
"@types/stylus": "^0.48.42", "@types/stylus": "^0.48.42",
"stylus": "^0.63.0" "stylus": "^0.63.0"
}, },