Skip to content

Commit

Permalink
Added support for installing a specific version of a plugin. (#6294)
Browse files Browse the repository at this point in the history
  • Loading branch information
SamTV12345 authored Apr 1, 2024
1 parent ed1c5dd commit ccd4f52
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/installPlugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit ccd4f52

Please sign in to comment.