v0.5.4 - Fix lockstep versioning and update all packages
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@mariozechner/pi-tui",
|
||||
"version": "0.5.2",
|
||||
"version": "0.5.3",
|
||||
"description": "Terminal User Interface library with differential rendering for efficient text-based applications",
|
||||
"type": "module",
|
||||
"main": "dist/index.js",
|
||||
|
||||
@@ -21,10 +21,10 @@ class Logger {
|
||||
// Clear log file on startup
|
||||
try {
|
||||
// Resolve log file path when needed
|
||||
const logFile = this.config.logFile.startsWith("/")
|
||||
? this.config.logFile
|
||||
const logFile = this.config.logFile.startsWith("/")
|
||||
? this.config.logFile
|
||||
: join(process.cwd(), this.config.logFile);
|
||||
|
||||
|
||||
writeFileSync(logFile, `=== TUI Debug Log Started ${new Date().toISOString()} ===\n`);
|
||||
} catch (error) {
|
||||
// Silently fail if we can't write to log file
|
||||
@@ -51,10 +51,10 @@ class Logger {
|
||||
const logLine = `[${timestamp}] ${level.toUpperCase()} [${component}] ${message}${dataStr}\n`;
|
||||
|
||||
// Resolve log file path when needed
|
||||
const logFile = this.config.logFile.startsWith("/")
|
||||
? this.config.logFile
|
||||
const logFile = this.config.logFile.startsWith("/")
|
||||
? this.config.logFile
|
||||
: join(process.cwd(), this.config.logFile);
|
||||
|
||||
|
||||
appendFileSync(logFile, logLine);
|
||||
} catch (error) {
|
||||
// Silently fail if we can't write to log file
|
||||
|
||||
Reference in New Issue
Block a user