Skip to content

Commit

Permalink
fix(import): 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 f1202de commit b552e22
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion commands/import/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const ChildProcessUtilities = require("@lerna/child-process");
const Command = require("@lerna/command");
const PromptUtilities = require("@lerna/prompt");
const ValidationError = require("@lerna/validation-error");
const pulseTillDone = require("@lerna/pulse-till-done");

module.exports = factory;

Expand Down Expand Up @@ -202,7 +203,7 @@ class ImportCommand extends Command {

proc.stdin.end(patch);

return proc
return pulseTillDone(proc)
.then(() => {
tracker.completeWork(1);
})
Expand Down
1 change: 1 addition & 0 deletions commands/import/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"@lerna/child-process": "file:../../core/child-process",
"@lerna/command": "file:../../core/command",
"@lerna/prompt": "file:../../core/prompt",
"@lerna/pulse-till-done": "file:../../utils/pulse-till-done",
"@lerna/validation-error": "file:../../core/validation-error",
"dedent": "^0.7.0",
"fs-extra": "^7.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 b552e22

Please sign in to comment.