Set up monorepo workspace

This commit is contained in:
Andras Schmelczer 2025-02-18 22:36:53 +00:00
parent ae3acb9e1e
commit eb88d35c2e
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
10 changed files with 207 additions and 26 deletions

48
sync-client/src/index.ts Normal file
View file

@ -0,0 +1,48 @@
export { applyRemoteChangesLocally } from "./sync-operations/apply-remote-changes-locally";
export {
type RelativePath,
type DocumentId,
type VaultUpdateId,
type DocumentMetadata
} from "./database/document-metadata";
export { Database } from "./database/database";
export {
SyncService,
type CheckConnectionResult
} from "./services/sync-service";
export { Syncer } from "./sync-operations/syncer";
export {
SyncHistory,
SyncType,
SyncSource,
SyncStatus,
type HistoryStats,
type HistoryEntry
} from "./tracing/sync-history";
export { Logger, LogLevel } from "./tracing/logger";
export { type FileOperations } from "./file-operations";
import init from "sync_lib";
import wasmBin from "sync_lib/sync_lib_bg.wasm";
export const initialize = async (): Promise<void> => {
await init(
// eslint-disable-next-line
(wasmBin as any).default // it is loaded as a base64 string by webpack
);
};
export {
isFileTypeMergable,
mergeText,
bytesToBase64,
base64ToBytes,
merge,
isBinary
} from "sync_lib";