fix filesystem plugin import
This commit is contained in:
@@ -333,7 +333,8 @@ const initConfigManager = async (runtime) => {
|
|||||||
let storage;
|
let storage;
|
||||||
{
|
{
|
||||||
const { createNodeStorage } = await import("./NodeStorage-B8VFtrTS.js");
|
const { createNodeStorage } = await import("./NodeStorage-B8VFtrTS.js");
|
||||||
storage = createNodeStorage(filesystemPlugin);
|
const filesystemPlugin2 = (await import("@takerofnotes/plugin-filesystem")).default;
|
||||||
|
storage = createNodeStorage(filesystemPlugin2);
|
||||||
}
|
}
|
||||||
return createConfigManager(storage);
|
return createConfigManager(storage);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
import filesystemPlugin from '@takerofnotes/plugin-filesystem'
|
|
||||||
import {
|
import {
|
||||||
createPluginManager,
|
createPluginManager,
|
||||||
createPluginManagerClient,
|
createPluginManagerClient,
|
||||||
@@ -43,6 +42,9 @@ const initConfigManager = async (runtime) => {
|
|||||||
let storage
|
let storage
|
||||||
if (runtime === 'electron-main') {
|
if (runtime === 'electron-main') {
|
||||||
const { createNodeStorage } = await import('./NodeStorage.js')
|
const { createNodeStorage } = await import('./NodeStorage.js')
|
||||||
|
const filesystemPlugin = (
|
||||||
|
await import('@takerofnotes/plugin-filesystem')
|
||||||
|
).default
|
||||||
storage = createNodeStorage(filesystemPlugin)
|
storage = createNodeStorage(filesystemPlugin)
|
||||||
} else if (runtime === 'web') {
|
} else if (runtime === 'web') {
|
||||||
storage = createWebStorage()
|
storage = createWebStorage()
|
||||||
|
|||||||
Reference in New Issue
Block a user