Skip to content

Commit

Permalink
spinner gone
Browse files Browse the repository at this point in the history
  • Loading branch information
catplvsplus committed Jun 10, 2024
1 parent b971a8c commit 6d885a7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/create-reciple/src/classes/TemplateBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export class TemplateBuilder implements TemplateBuilderOptions {

done++;

this.persistSpinner({ symbol: kleur.bold().green(' +'), text: `Installed addon ${kleur.cyan(addon.module + '@' + (addon.version ?? 'latest'))}` });
this.persistSpinner({ symbol: kleur.bold().green(' +'), text: `Installed addon ${kleur.cyan(addon.module + '@' + (addon.version ?? 'latest'))}` });
this.setSpinnerText(`Installing ${kleur.cyan(addons.length + ' addons')} ${kleur.gray('('+ done +'/'+ addons.length +')')}...`);
}

Expand Down Expand Up @@ -179,6 +179,13 @@ export class TemplateBuilder implements TemplateBuilderOptions {

public persistSpinner(options: PersistOptions): void {
if (!this.spinner) return;

const spinner = this.spinner.spinner;
const color = this.spinner.color;

this.spinner = this.spinner.stopAndPersist(options);
this.spinner.spinner = spinner;
this.spinner.color = color;
this.spinner.start();
}
}

0 comments on commit 6d885a7

Please sign in to comment.