From 014cf4cf5062c6959f28fa68db50f60c802c037e Mon Sep 17 00:00:00 2001 From: Kokomi <102026640+yoimiya-kokomi@users.noreply.github.com> Date: Wed, 8 Mar 2023 02:39:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=83=A8=E5=88=86=E4=BE=9D?= =?UTF-8?q?=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- lib/plugins/loader.js | 1 + package.json | 38 +++++++++++++++++++++----------------- 3 files changed, 23 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index e6d39d3..64d5cb7 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ npm --registry=https://registry.npmmirror.com install pnpm -g pnpm install -P # 如依赖安装缓慢或失败,可尝试更换国内npm源后再执行install命令 -pnpm --registry https://registry.npmmirror.com install -P +pnpm config set registry https://registry.npmmirror.com pnpm install -P ``` diff --git a/lib/plugins/loader.js b/lib/plugins/loader.js index 1588611..a5cd6a1 100644 --- a/lib/plugins/loader.js +++ b/lib/plugins/loader.js @@ -13,6 +13,7 @@ import Runtime from './runtime.js' /** 全局变量 plugin */ global.plugin = plugin +global.segment = segment /** * 加载插件 diff --git a/package.json b/package.json index 3c126c2..e1ee8b4 100644 --- a/package.json +++ b/package.json @@ -17,36 +17,40 @@ }, "dependencies": { "art-template": "^4.13.2", - "chalk": "^5.0.1", + "chalk": "^5.2.0", "chokidar": "^3.5.3", "https-proxy-agent": "5.0.1", - "icqq": "^0.0.26", + "icqq": "^0.0.29", "image-size": "^1.0.2", - "inquirer": "^8.2.4", + "inquirer": "^8.2.5", "lodash": "^4.17.21", - "log4js": "^6.5.2", + "log4js": "^6.9.0", "md5": "^2.3.0", - "moment": "^2.29.3", - "node-fetch": "^3.2.6", - "node-schedule": "^2.1.0", + "moment": "^2.29.4", + "node-fetch": "^3.3.0", + "node-schedule": "^2.1.1", "node-xlsx": "^0.21.0", "oicq": "^2.3.1", - "patch-package": "^6.5.0", + "patch-package": "^6.5.1", "pm2": "^5.2.2", - "puppeteer": "^13.7.0", - "redis": "^4.1.0", - "yaml": "^2.1.1" + "puppeteer": "^19.7.3", + "redis": "^4.6.5", + "yaml": "^2.2.1" }, "devDependencies": { - "eslint": "^8.18.0", + "eslint": "^8.35.0", "eslint-config-standard": "^17.0.0", - "eslint-plugin-import": "^2.26.0", - "eslint-plugin-n": "^15.2.3", - "eslint-plugin-promise": "^6.0.0", - "express": "^4.18.1", + "eslint-plugin-import": "^2.27.5", + "eslint-plugin-n": "^15.6.1", + "eslint-plugin-promise": "^6.1.1", + "express": "^4.18.2", "express-art-template": "^1.0.1" }, + "imports": { + "#miao": "./plugins/miao-plugin/components/index.js", + "#miao.models": "./plugins/miao-plugin/models/index.js" + }, "pnpm": { "patchedDependencies": {} } -} +} \ No newline at end of file