Skip to content

Commit

Permalink
fix(register): Fix warning when dependencies are already registered (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-cahill authored Nov 30, 2022
1 parent 42f6c88 commit a593ea9
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/commands/register.ts
Original file line number Diff line number Diff line change
Expand Up @@ -442,22 +442,19 @@ export default class ComponentRegister extends BaseCommand {
}
}

if (component_warnings || tag_warnings) {
this.log();
this.log(chalk.yellow(`Some required dependencies for this component have not yet been registered to your account. Please make sure to register the following before you try to deploy.`));
if (component_warnings.length > 0 || tag_warnings.length > 0) {
this.log(chalk.yellow(`\nSome required dependencies for this component have not yet been registered to your account. Please make sure to register the following before you try to deploy.`));
}

if (component_warnings.length > 0) {
this.log();
this.log(chalk.yellow(`The following components do not exist.`));
this.log(chalk.yellow(`\nThe following components do not exist.`));
for (const component_name of component_warnings) {
this.log(chalk.yellow(` - ${component_name}`));
}
}

if (tag_warnings.length > 0) {
this.log();
this.log(chalk.yellow(`The following components exist, but do not have the specified tag.`));
this.log(chalk.yellow(`\nThe following components exist, but do not have the specified tag.`));
for (const component_name of tag_warnings) {
this.log(chalk.yellow(` - ${component_name}`));
}
Expand Down

0 comments on commit a593ea9

Please sign in to comment.