Skip to content

Commit

Permalink
Display activity spinner during cache clean. yarnpkg#3452 (yarnpkg#3456)
Browse files Browse the repository at this point in the history
  • Loading branch information
rally25rs authored and bestander committed May 19, 2017
1 parent eac179c commit 67fe99d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cli/commands/cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,12 @@ export const {run, setFlags, examples} = buildSubCommands('cache', {

async clean(config: Config, reporter: Reporter, flags: Object, args: Array<string>): Promise<void> {
if (config.cacheFolder) {
const activity = reporter.activity();

await fs.unlink(config._cacheRootFolder);
await fs.mkdirp(config.cacheFolder);

activity.end();
reporter.success(reporter.lang('clearedCache'));
}
},
Expand Down

0 comments on commit 67fe99d

Please sign in to comment.