Added support for installing a specific version of a plugin. (#6294)

This commit is contained in:
SamTV12345 2024-04-01 16:57:10 +02:00 committed by GitHub
parent ed1c5dd184
commit ccd4f52150
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -39,6 +39,11 @@ const persistInstalledPlugins = async () => {
async function run() {
for (const plugin of registryPlugins) {
console.log(`Installing plugin from registry: ${plugin}`)
if (plugin.includes('@')) {
const [name, version] = plugin.split('@');
await linkInstaller.installPlugin(name, version);
continue;
}
await linkInstaller.installPlugin(plugin);
}