Comparing version 2.0.0-alpha.61 to 2.0.0-alpha.62
@@ -55,3 +55,5 @@ "use strict"; | ||
try { | ||
return cacheMap[`${type}_${name}`] = require(path); | ||
const result = require(path); | ||
logger.info('apply %s %c', type, result && result.name || name); | ||
return cacheMap[`${type}_${name}`] = result; | ||
} | ||
@@ -80,4 +82,2 @@ catch (error) { | ||
ctx.plugin(plugin, options); | ||
if (plugin.name) | ||
logger.info('apply plugin %c', plugin.name); | ||
} | ||
@@ -91,5 +91,3 @@ } | ||
for (const name in config.database || {}) { | ||
const resolved = loadEcosystem('database', name); | ||
if (resolved) | ||
logger.info('apply database %c', name); | ||
loadEcosystem('database', name); | ||
} | ||
@@ -96,0 +94,0 @@ const app = new koishi_core_1.App(config); |
{ | ||
"name": "koishi", | ||
"description": "A QQ bot framework based on CQHTTP", | ||
"version": "2.0.0-alpha.61", | ||
"version": "2.0.0-alpha.62", | ||
"main": "dist/index.js", | ||
@@ -38,10 +38,10 @@ "typings": "dist/index.d.ts", | ||
"dependencies": { | ||
"cac": "^6.5.12", | ||
"cac": "^6.6.1", | ||
"kleur": "^4.0.2", | ||
"koishi-core": "^2.0.0-alpha.36", | ||
"koishi-plugin-common": "^3.0.0-alpha.39", | ||
"koishi-plugin-recorder": "^2.0.0-alpha.36", | ||
"koishi-plugin-schedule": "^2.0.0-alpha.40", | ||
"koishi-plugin-status": "^2.0.0-alpha.38", | ||
"koishi-plugin-teach": "^1.0.0-alpha.56", | ||
"koishi-core": "^2.0.0-alpha.37", | ||
"koishi-plugin-common": "^3.0.0-alpha.40", | ||
"koishi-plugin-recorder": "^2.0.0-alpha.37", | ||
"koishi-plugin-schedule": "^2.0.0-alpha.41", | ||
"koishi-plugin-status": "^2.0.0-alpha.39", | ||
"koishi-plugin-teach": "^1.0.0-alpha.57", | ||
"koishi-utils": "^2.1.1", | ||
@@ -48,0 +48,0 @@ "prompts": "^2.3.2" |
Sorry, the diff of this file is not supported yet
33623
367