chore: 调整出包方式

This commit is contained in:
手瓜一十雪
2024-08-10 17:50:23 +08:00
parent 6371d79d33
commit 1f71a01453
7 changed files with 15 additions and 16 deletions

View File

@@ -122,9 +122,9 @@ async function NCInit() {
try {
const { wrapperSession, wrapperLoginService } = await fetchServices();
const { NCoreInitLiteLoader } = await import('file://' + path.join(currentPath, './napcat.mjs'));
const { NCoreInitFramework } = await import('file://' + path.join(currentPath, './napcat.mjs'));
//传入LoginService Session 其余自载入
await NCoreInitLiteLoader(wrapperSession, wrapperLoginService, registerInitCallback);
await NCoreInitFramework(wrapperSession, wrapperLoginService, registerInitCallback);
//console.log("[NapCat] [Info] NapCat初始化完成");
} catch (error) {
console.error("[NapCat] [Error] 初始化NapCat失败", error);