Skip to content

Commit c9cfbf1

Browse files
authored
Updated prompting to new yeoman-generator api (#272)
Updated prompting to new yeoman-generator api Fixes #271
1 parent 9756541 commit c9cfbf1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

generators/app/index.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ module.exports = generator.Base.extend({
3636
},
3737

3838
prompting: function() {
39-
let done = this.async();
40-
this.prompt(prompts, function(props) {
39+
return this.prompt(prompts, function(props) {
4140

4241
// Make sure to get the correct app name if it is not the default
4342
if(props.appName !== utils.yeoman.getAppName()) {
@@ -47,7 +46,7 @@ module.exports = generator.Base.extend({
4746
// Set needed global vars for yo
4847
this.appName = props.appName;
4948
this.style = props.style;
50-
this.postcss = props.postcss
49+
this.postcss = props.postcss;
5150
this.generatedWithVersion = packageInfo.version.split('.').unshift();
5251

5352
// Set needed keys into config
@@ -59,7 +58,6 @@ module.exports = generator.Base.extend({
5958

6059
this.config.save();
6160

62-
done();
6361
}.bind(this));
6462
},
6563

0 commit comments

Comments
 (0)