Amit Limbasiya
Amit Limbasiya

Reputation: 45

Lerna is not rendering inquirer prompt properly

I am using lerna to handle the monorepo project structure.

When I run below code

const question = [{
       type: 'input',
       name: 'permission',
       message: chalk.red(logMessages.deleteFeatureReleaseBranch.permissionMessage),
       filter: (input: string) => {
            return input.trim();
       },
       validate: (input: string) => {
         if (!validatePermissionInput(input)) return logMessages.deleteFeatureReleaseBranch.permissionValidationFailedMessage;
              return true;
          }
}];

const permission:string = (await inquirer.prompt(question)).permission;

I don't know whether the issue is with inquirer (like extra configuration for lerna support) or it is the lerna not supporting inquirer prompt question.

Upvotes: 0

Views: 75

Answers (0)

Related Questions