Skip to content

Commit

Permalink
fix(clean): Pulse progress bar during execution
Browse files Browse the repository at this point in the history
  • Loading branch information
evocateur committed Dec 19, 2018
1 parent b38a151 commit f1202de
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion commands/clean/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const Command = require("@lerna/command");
const rimrafDir = require("@lerna/rimraf-dir");
const PromptUtilities = require("@lerna/prompt");
const { getFilteredPackages } = require("@lerna/filter-options");
const pulseTillDone = require("@lerna/pulse-till-done");

module.exports = factory;

Expand Down Expand Up @@ -49,7 +50,7 @@ class CleanCommand extends Command {
const mapper = dirPath => {
tracker.info("clean", "removing", dirPath);

return rimrafDir(dirPath).then(() => {
return pulseTillDone(rimrafDir(dirPath)).then(() => {
tracker.completeWork(1);
});
};
Expand Down
1 change: 1 addition & 0 deletions commands/clean/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"@lerna/command": "file:../../core/command",
"@lerna/filter-options": "file:../../core/filter-options",
"@lerna/prompt": "file:../../core/prompt",
"@lerna/pulse-till-done": "file:../../utils/pulse-till-done",
"@lerna/rimraf-dir": "file:../../utils/rimraf-dir",
"p-map": "^1.2.0",
"p-map-series": "^1.0.0",
Expand Down
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f1202de

Please sign in to comment.