async prompting()

in generators/package/index.js [15:29]


  async prompting() {
    this.parent = this.options.parent;
    this.props = this.parent.props;
    const prompts = [
      {
        type: "confirm",
        name: "withPackage",
        message: "Do you want to configure your solution with a package?",
        default: true,
        when: (answers) => !this.options.hasOwnProperty("withPackage") && this.props.solutionLevel >= 300,
      },
    ];

    return this.prompt(prompts).then(this._promptingPackage.bind(this));
  }