mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-21 22:19:41 +01:00
refactor: install private packages from gh packages
This commit is contained in:
@@ -1,13 +1,15 @@
|
||||
import { EventSourcePolyfill as EventSource } from "event-source-polyfill";
|
||||
import { EVENTS } from "notes-core/common";
|
||||
import { EVENTS } from "@streetwriters/notesnook-core/common";
|
||||
import { TaskManager } from "./task-manager";
|
||||
|
||||
/**
|
||||
* @type {import("notes-core/api").default}
|
||||
* @type {import("@streetwriters/notesnook-core/api").default}
|
||||
*/
|
||||
var db;
|
||||
async function initializeDatabase(persistence) {
|
||||
const { default: Database } = await import("notes-core/api");
|
||||
const { default: Database } = await import(
|
||||
"@streetwriters/notesnook-core/api"
|
||||
);
|
||||
const { NNStorage } = await import("../interfaces/storage");
|
||||
const { default: FS } = await import("../interfaces/fs");
|
||||
db = new Database(new NNStorage(persistence), EventSource, FS);
|
||||
|
||||
Reference in New Issue
Block a user