mirror of https://github.com/msgbyte/tailchat
chore: add plugin install
parent
1bfd1c76d6
commit
167ed4e114
@ -0,0 +1,4 @@
|
||||
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
# yarn lockfile v1
|
||||
|
||||
|
@ -0,0 +1,22 @@
|
||||
const fs = require('fs-extra');
|
||||
const glob = require('glob');
|
||||
const path = require('path');
|
||||
const execa = require('execa');
|
||||
|
||||
const pluginDirs = glob.sync(path.join(__dirname, './com.msgbyte.*'));
|
||||
|
||||
Promise.all(
|
||||
pluginDirs.map((dir) => {
|
||||
execa('yarn', {
|
||||
cwd: dir,
|
||||
stdout: 'inherit',
|
||||
stderr: 'inherit',
|
||||
});
|
||||
})
|
||||
)
|
||||
.then(() => {
|
||||
console.log('插件依赖安装完毕');
|
||||
})
|
||||
.catch((err) => {
|
||||
console.error('插件依赖安装失败:', err);
|
||||
});
|
Loading…
Reference in New Issue