use coreEnvVars for some vars

This commit is contained in:
vorotamoroz committed 2026-05-30 23:59:36 +09:00
1 parent 24e6c110a3
commit 39014b2294
2 files changed
+3 -6

No files matched your search

+2 -1
View File
@@ -42,7 +42,8 @@ export default defineConfig([
".prettierrc.*.mjs", ".prettierrc.*.mjs",
".prettierrc.mjs", ".prettierrc.mjs",
"*.config.mjs", "*.config.mjs",
"vite.*",
"vitest.*",
// Testing files (Simplified patterns) // Testing files (Simplified patterns)
"test/**", "test/**",
"**/*.test.ts", "**/*.test.ts",
+1 -5
View File
@@ -13,6 +13,7 @@ import { AbstractModule } from "../AbstractModule.ts";
import type { InjectableServiceHub } from "@lib/services/implements/injectable/InjectableServiceHub.ts"; import type { InjectableServiceHub } from "@lib/services/implements/injectable/InjectableServiceHub.ts";
import type { LiveSyncCore } from "../../main.ts"; import type { LiveSyncCore } from "../../main.ts";
import { initialiseWorkerModule } from "@lib/worker/bgWorker.ts"; import { initialiseWorkerModule } from "@lib/worker/bgWorker.ts";
import { manifestVersion, packageVersion } from "@lib/common/coreEnvVars.ts";
export class ModuleLiveSyncMain extends AbstractModule { export class ModuleLiveSyncMain extends AbstractModule {
async _onLiveSyncReady() { async _onLiveSyncReady() {
@@ -89,11 +90,6 @@ export class ModuleLiveSyncMain extends AbstractModule {
return false; return false;
} }
// this.addUIs(); // 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 })); this._log($msg("moduleLiveSyncMain.logPluginVersion", { manifestVersion, packageVersion }));
await this.services.setting.loadSettings(); await this.services.setting.loadSettings();
if (!(await this.services.appLifecycle.onSettingLoaded())) { if (!(await this.services.appLifecycle.onSettingLoaded())) {