update plugin packages

This commit is contained in:
nicwands
2026-02-25 22:22:17 -05:00
parent 949f14f0e1
commit fc4ba2c487
6 changed files with 79 additions and 75 deletions

View File

@@ -1,12 +1,12 @@
import { electronApp, optimizer, is } from '@electron-toolkit/utils'
import { app, shell, BrowserWindow, ipcMain } from 'electron'
import filesystemPlugin from 'takerofnotes-plugin-filesystem'
import filesystemPlugin from '@takerofnotes/plugin-filesystem'
import PluginRegistry from './core/PluginRegistry.js'
import PluginConfig from './core/PluginConfig.js'
import NotesAPI from './core/NotesAPI.js'
import { join } from 'path'
const preloadPath = join(__dirname, '../preload/index.js')
const preloadPath = join(__dirname, '../preload/index.mjs')
const rendererPath = join(__dirname, '../renderer/index.html')
// Main window
@@ -48,6 +48,7 @@ function createNoteWindow(noteId) {
preload: preloadPath,
contextIsolation: true,
nodeIntegration: false,
sandbox: false,
},
})
@@ -84,8 +85,7 @@ app.whenReady().then(async () => {
const registry = new PluginRegistry()
// Register built-in plugins
// TODO figure out why export is under default
registry.register(filesystemPlugin.default)
registry.register(filesystemPlugin)
// Pull plugin config
const config = await new PluginConfig(filesystemPlugin).load()