update
command fails when project uses deprecated official plugin
#156
Labels
bug
Something isn't working
Issue Description
When an API project uses a deprecated reactioncommerce plugin, the
reaction update
command fails. When the CLI checks for version mismatch between the local plugin version and the latest remote plugin versions it compares the version of all local plugins to the remote ones. The problem arises when a project uses a deprecated plugin that's not present in the latest reactioncommerce API. Example of the that is the@reactioncommerce/api-plugin-payments-stripe
.If a the local project uses the
@reactioncommerce/api-plugin-payments-stripe
, when we check for the version of the plugin on the remote project here:cli/commands/update.js
Line 118 in 7ab5268
We get the following error:
This happens because the version of
@reactioncommerce/api-plugin-payments-stripe
on the remote project resolves to an empty string.Instead of failing, the
update
command should display a warning message that the local project depends on a deprecated official plugin.Steps to Reproduce
@reactioncommerce/api-plugin-payments-stripe
pluginreaction update
command for this projectThe text was updated successfully, but these errors were encountered: