From 39014b2294df28178a74487034188281c21fd400 Mon Sep 17 00:00:00 2001 From: vorotamoroz Date: Sat, 30 May 2026 23:59:36 +0900 Subject: [PATCH] use coreEnvVars for some vars --- eslint.config.mjs | 3 ++- src/modules/main/ModuleLiveSyncMain.ts | 6 +----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index 80bc5b2..203551d 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -42,7 +42,8 @@ export default defineConfig([ ".prettierrc.*.mjs", ".prettierrc.mjs", "*.config.mjs", - + "vite.*", + "vitest.*", // Testing files (Simplified patterns) "test/**", "**/*.test.ts", diff --git a/src/modules/main/ModuleLiveSyncMain.ts b/src/modules/main/ModuleLiveSyncMain.ts index b1765b2..d6d04bb 100644 --- a/src/modules/main/ModuleLiveSyncMain.ts +++ b/src/modules/main/ModuleLiveSyncMain.ts @@ -13,6 +13,7 @@ import { AbstractModule } from "../AbstractModule.ts"; import type { InjectableServiceHub } from "@lib/services/implements/injectable/InjectableServiceHub.ts"; import type { LiveSyncCore } from "../../main.ts"; import { initialiseWorkerModule } from "@lib/worker/bgWorker.ts"; +import { manifestVersion, packageVersion } from "@lib/common/coreEnvVars.ts"; export class ModuleLiveSyncMain extends AbstractModule { async _onLiveSyncReady() { @@ -89,11 +90,6 @@ export class ModuleLiveSyncMain extends AbstractModule { return false; } // this.addUIs(); - //@ts-ignore - const manifestVersion: string = MANIFEST_VERSION || "0.0.0"; - //@ts-ignore - const packageVersion: string = PACKAGE_VERSION || "0.0.0"; - this._log($msg("moduleLiveSyncMain.logPluginVersion", { manifestVersion, packageVersion })); await this.services.setting.loadSettings(); if (!(await this.services.appLifecycle.onSettingLoaded())) {