mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-10-26 11:03:21 +00:00
use coreEnvVars for some vars
This commit is contained in:
2 files changed
+3
-6
No files matched your search
+2
-1
@@ -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",
|
||||||
|
|||||||
@@ -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())) {
|
||||||
|
|||||||
Reference in new issue
Block a user