Skip to content

Commit

Permalink
fix: @adobe/aio-cli is listed in the plugins to update (#141)
Browse files Browse the repository at this point in the history
closes #137
  • Loading branch information
shazron authored Apr 15, 2020
1 parent 87f2ae4 commit 25d183a
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/commands/update.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,15 @@ class UpdateCommand extends Command {
// Filter installed plugins:
// - remove any plugin that is in core, that is not from the @adobe namespace
// These will not be updateable for compatibility reasons
const installedPlugins = this.config.plugins.filter(plugin =>
!(
corePlugins.includes(plugin.name) &&
!(plugin.name.startsWith('@adobe/'))
const installedPlugins = this.config.plugins
.filter(plugin =>
!(
corePlugins.includes(plugin.name) &&
!(plugin.name.startsWith('@adobe/'))
)
)
)
// remove the cli itself from the plugin list
.filter(plugin => plugin.name !== this.config.pjson.name)

for (const plugin of installedPlugins) {
const { type, name, version: currentVersion } = plugin
Expand Down

0 comments on commit 25d183a

Please sign in to comment.