arisa 2.3.7 → 2.3.8
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/package.json +1 -1
- package/src/daemon/index.ts +6 -0
package/package.json
CHANGED
package/src/daemon/index.ts
CHANGED
|
@@ -12,6 +12,12 @@
|
|
|
12
12
|
* @effects Network (Telegram, HTTP servers), spawns Core process
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
+
// Log version at startup
|
|
16
|
+
import { readFileSync } from "fs";
|
|
17
|
+
import { join, dirname } from "path";
|
|
18
|
+
const pkgPath = join(dirname(new URL(import.meta.url).pathname), "..", "package.json");
|
|
19
|
+
try { const pkg = JSON.parse(readFileSync(pkgPath, "utf8")); console.log(`Arisa v${pkg.version}`); } catch {}
|
|
20
|
+
|
|
15
21
|
// Setup runs first — no config dependency, writes .env if needed
|
|
16
22
|
import { runSetup } from "./setup";
|
|
17
23
|
const ready = await runSetup();
|