diff --git a/packages/cli/src/commands/setup/auth/auth.js b/packages/cli/src/commands/setup/auth/auth.js index ccdee47776b6..ed97cbb49bad 100644 --- a/packages/cli/src/commands/setup/auth/auth.js +++ b/packages/cli/src/commands/setup/auth/auth.js @@ -81,11 +81,9 @@ export async function builder(yargs) { commandModule = await import(module) } catch (e) { // Since these are plugins, it's ok if they can't be imported because they're not installed. - if (e.code === 'MODULE_NOT_FOUND') { - return + if (e.code !== 'MODULE_NOT_FOUND') { + throw e } - - throw e } if (commandModule) {