From 831d41b5aecbc6b644df22b57577660827c55d41 Mon Sep 17 00:00:00 2001 From: nicwands Date: Mon, 23 Mar 2026 17:06:58 -0400 Subject: [PATCH] fix filesystem plugin import --- out/main/index.js | 3 ++- src/core/index.js | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/out/main/index.js b/out/main/index.js index b1ceb9e..22f5608 100644 --- a/out/main/index.js +++ b/out/main/index.js @@ -333,7 +333,8 @@ const initConfigManager = async (runtime) => { let storage; { const { createNodeStorage } = await import("./NodeStorage-B8VFtrTS.js"); - storage = createNodeStorage(filesystemPlugin); + const filesystemPlugin2 = (await import("@takerofnotes/plugin-filesystem")).default; + storage = createNodeStorage(filesystemPlugin2); } return createConfigManager(storage); }; diff --git a/src/core/index.js b/src/core/index.js index 3c7b9d0..1ae2ed2 100644 --- a/src/core/index.js +++ b/src/core/index.js @@ -1,4 +1,3 @@ -import filesystemPlugin from '@takerofnotes/plugin-filesystem' import { createPluginManager, createPluginManagerClient, @@ -43,6 +42,9 @@ const initConfigManager = async (runtime) => { let storage if (runtime === 'electron-main') { const { createNodeStorage } = await import('./NodeStorage.js') + const filesystemPlugin = ( + await import('@takerofnotes/plugin-filesystem') + ).default storage = createNodeStorage(filesystemPlugin) } else if (runtime === 'web') { storage = createWebStorage()