@townco/core 0.0.22 → 0.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/logger.js +2 -2
- package/package.json +2 -2
package/dist/logger.js
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
* Also captures logs to a global store for in-app viewing
|
|
5
5
|
* In Node.js environment with logsDir option, also writes to .logs/ directory
|
|
6
6
|
*/
|
|
7
|
+
import * as fs from "node:fs";
|
|
8
|
+
import * as path from "node:path";
|
|
7
9
|
// Check if running in Node.js
|
|
8
10
|
const isNode = typeof process !== "undefined" && process.versions?.node;
|
|
9
11
|
// Global logs directory configuration (set once at app startup for TUI)
|
|
@@ -93,8 +95,6 @@ export class Logger {
|
|
|
93
95
|
return;
|
|
94
96
|
try {
|
|
95
97
|
// Dynamic import for Node.js modules
|
|
96
|
-
const path = require("node:path");
|
|
97
|
-
const fs = require("node:fs");
|
|
98
98
|
this.logsDir = globalLogsDir;
|
|
99
99
|
this.logFilePath = path.join(this.logsDir, `${this.service}.log`);
|
|
100
100
|
// Create logs directory if it doesn't exist
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@townco/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.23",
|
|
5
5
|
"description": "core",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"typescript": "^5.9.3",
|
|
21
|
-
"@townco/tsconfig": "0.1.
|
|
21
|
+
"@townco/tsconfig": "0.1.42"
|
|
22
22
|
},
|
|
23
23
|
"scripts": {
|
|
24
24
|
"build": "tsc",
|