Comparing version 1.5.0 to 1.6.0
@@ -27,3 +27,3 @@ "use strict"; | ||
const prefix = `koishi-${type}-`; | ||
if (name.includes(prefix)) { | ||
if (name.includes(prefix) || name.startsWith('.')) { | ||
modules.unshift(name); | ||
@@ -39,3 +39,7 @@ } | ||
} | ||
catch { } | ||
catch (error) { | ||
if (error.code !== 'MODULE_NOT_FOUND') { | ||
throw error; | ||
} | ||
} | ||
} | ||
@@ -42,0 +46,0 @@ throw new Error(`cannot resolve ${type} ${name}`); |
{ | ||
"name": "koishi", | ||
"description": "A QQ bot framework based on CQHTTP", | ||
"version": "1.5.0", | ||
"version": "1.6.0", | ||
"main": "dist/index.js", | ||
@@ -43,5 +43,5 @@ "typings": "dist/index.d.ts", | ||
"kleur": "^3.0.3", | ||
"koishi-core": "^1.5.0", | ||
"koishi-plugin-common": "^2.0.0", | ||
"koishi-plugin-schedule": "^1.0.3", | ||
"koishi-core": "^1.6.0", | ||
"koishi-plugin-common": "^2.0.1", | ||
"koishi-plugin-schedule": "^1.0.4", | ||
"koishi-utils": "^1.0.2", | ||
@@ -48,0 +48,0 @@ "prompts": "^2.3.0" |
22644
406
Updatedkoishi-core@^1.6.0
Updatedkoishi-plugin-common@^2.0.1