mirror of
https://github.com/rubickCenter/rubick
synced 2025-12-18 00:34:19 +08:00
✨ 支持ui插件下载&运行
This commit is contained in:
@@ -34,7 +34,8 @@ class AdapterHandler {
|
||||
);
|
||||
}
|
||||
this.baseDir = options.baseDir;
|
||||
this.registry = options.registry ?? "https://registry.npm.taobao.org";
|
||||
console.log(this.baseDir);
|
||||
this.registry = options.registry || "https://registry.npm.taobao.org";
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -68,8 +69,8 @@ class AdapterHandler {
|
||||
}
|
||||
|
||||
// 安装并启动插件
|
||||
async install(adapters: Array<string>, opts?: any) {
|
||||
const installCmd = opts.isDev ? "link" : "install";
|
||||
async install(adapters: Array<string>) {
|
||||
const installCmd = "install";
|
||||
// 安装
|
||||
await this.execCommand(installCmd, adapters);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user