Commit aed0da2a authored by nanahira's avatar nanahira

support org prefix plugin

parent f9d076e2
......@@ -120,6 +120,11 @@ async function installPlugin(name: string, info: any) {
const installVersion = version || 'latest';
if (name.includes(communityPrefix) || name.startsWith(officialPrefix)) {
installList.push(`${name}@${installVersion}`);
} else if (name.startsWith('@') && name.includes('/')) {
const [author, pluginName] = name.split('/');
installList.push(
`${author}/${communityPrefix}${pluginName}@${installVersion}`,
);
} else {
if (allowOfficial) {
installList.push(`${officialPrefix}${name}@${installVersion}`);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment