diff --git a/web/plugins/install.js b/web/plugins/install.js index 4d8d0794..e1e94afc 100644 --- a/web/plugins/install.js +++ b/web/plugins/install.js @@ -5,14 +5,16 @@ const execa = require('execa'); const pluginDirs = glob.sync(path.join(__dirname, './com.msgbyte.*')); +console.log(`开始安装插件依赖:\n${pluginDirs.join('\n')}`); + Promise.all( - pluginDirs.map((dir) => { + pluginDirs.map((dir) => execa('yarn', { cwd: dir, stdout: 'inherit', stderr: 'inherit', - }); - }) + }) + ) ) .then(() => { console.log('插件依赖安装完毕'); diff --git a/yarn.lock b/yarn.lock index 5c41914b..8edecfdd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4091,7 +4091,7 @@ execa@^1.0.0: signal-exit "^3.0.0" strip-eof "^1.0.0" -execa@^5.0.0: +execa@^5.0.0, execa@^5.1.1: version "5.1.1" resolved "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz#f80ad9cbf4298f7bd1d4c9555c21e93741c411dd" integrity sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg== @@ -4106,21 +4106,6 @@ execa@^5.0.0: signal-exit "^3.0.3" strip-final-newline "^2.0.0" -execa@^5.1.1: - version "5.1.1" - resolved "https://registry.nlark.com/execa/download/execa-5.1.1.tgz#f80ad9cbf4298f7bd1d4c9555c21e93741c411dd" - integrity sha1-+ArZy/Qpj3vR1MlVXCHpN0HEEd0= - dependencies: - cross-spawn "^7.0.3" - get-stream "^6.0.0" - human-signals "^2.1.0" - is-stream "^2.0.0" - merge-stream "^2.0.0" - npm-run-path "^4.0.1" - onetime "^5.1.2" - signal-exit "^3.0.3" - strip-final-newline "^2.0.0" - exit@^0.1.2: version "0.1.2" resolved "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz#0632638f8d877cc82107d30a0fff1a17cba1cd0c"