Skip to content

Commit

Permalink
fix(@angular/cli): fix issue with console prompt bailing early
Browse files Browse the repository at this point in the history
fixes #5127, #4614
  • Loading branch information
delasteve committed Mar 4, 2017
1 parent 34c33b9 commit c33527f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/@angular/cli/ember-cli/lib/ui/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,12 +174,10 @@ UI.prototype.prompt = function(questions, callback) {

// If no callback was provided, automatically return a promise
if (callback) {
inquirer.prompt(questions, callback);
} else {
return new Promise(function(resolve) {
inquirer.prompt(questions, resolve);
});
return inquirer.prompt(questions, callback);
}

return inquirer.prompt(questions);
};

/**
Expand Down

0 comments on commit c33527f

Please sign in to comment.