diff --git a/infrastructure/services/CloudSyncManager.ts b/infrastructure/services/CloudSyncManager.ts index ee06983e..b8aeb4bf 100644 --- a/infrastructure/services/CloudSyncManager.ts +++ b/infrastructure/services/CloudSyncManager.ts @@ -31,6 +31,7 @@ import { generateDeviceId, getDefaultDeviceName, } from '../../domain/sync'; +import packageJson from '../../package.json'; import { EncryptionService } from './EncryptionService'; import { createAdapter, type CloudAdapter } from './adapters'; import type { GitHubAdapter } from './adapters/GitHubAdapter'; @@ -890,7 +891,7 @@ export class CloudSyncManager { this.masterPassword, this.state.deviceId, this.state.deviceName, - '1.0.0', // TODO: Get from package.json + packageJson.version, this.state.localVersion ); diff --git a/tsconfig.json b/tsconfig.json index 9e9a86c8..06fea84f 100755 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,6 +10,7 @@ "DOM.Iterable" ], "skipLibCheck": true, + "resolveJsonModule": true, "types": [ "node", "vite/client"