feat: enable LETTA_DEBUG=1 by default in dev script (#1366)

This commit is contained in:
jnjpng
2026-03-12 14:30:57 -06:00
committed by GitHub
parent e94c15ea87
commit 97d6d179df
2 changed files with 2 additions and 2 deletions

View File

@@ -67,7 +67,7 @@
"fix": "bunx --bun @biomejs/biome@2.2.5 check --write src",
"typecheck": "tsc --noEmit",
"check": "bun run scripts/check.js",
"dev": "bun --loader:.md=text --loader:.mdx=text --loader:.txt=text run src/index.ts",
"dev": "LETTA_DEBUG=1 bun --loader:.md=text --loader:.mdx=text --loader:.txt=text run src/index.ts",
"build": "node scripts/postinstall-patches.js && bun run build.js",
"test:update-chain:manual": "bun run src/tests/update-chain-smoke.ts --mode manual",
"test:update-chain:startup": "bun run src/tests/update-chain-smoke.ts --mode startup",

View File

@@ -51,7 +51,7 @@ function printDebugLine(line: string, level: "log" | "warn" = "log"): void {
level === "warn"
? `\x1b[38;5;167m${line.trimEnd()}\x1b[0m` // muted red
: `\x1b[38;5;179m${line.trimEnd()}\x1b[0m`; // muted golden yellow
console.log(colored);
console.error(colored);
}
// ---------------------------------------------------------------------------