Skip to content

Commit

Permalink
Fix error occuring with nodePlop usage
Browse files Browse the repository at this point in the history
  • Loading branch information
crutchcorn committed Nov 25, 2021
1 parent 91b854f commit 020286c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/console-out.js
Expand Up @@ -24,8 +24,8 @@ function getHelpMessage(generator) {
);
}

function chooseOptionFromList(plopList, message) {
const plop = nodePlop();
async function chooseOptionFromList(plopList, message) {
const plop = await nodePlop();
const generator = plop.setGenerator("choose", {
prompts: [
{
Expand Down
1 change: 1 addition & 0 deletions tests/examples/javascript/plopfile.js
@@ -1,6 +1,7 @@
import path from "path";
import fs from "fs";
import inquirerDirectory from "inquirer-directory";

export default function (plop) {
// starting prompt can be customized to display what you want
// plop.setWelcomeMessage('[CUSTOM]'.yellow + ' What can I do for you?');
Expand Down

0 comments on commit 020286c

Please sign in to comment.