Skip to content

Commit

Permalink
feat: Remove Serverless: prefix from inquirer
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Inquirer prompt will have no prefix instead of `Serverless:`
If you wish, to still use `Serverless:` prefix, override it on the client side.
  • Loading branch information
pgrzesik committed May 12, 2021
1 parent 724fed0 commit edb8593
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inquirer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ module.exports = requireUncached(inquirersChalkPath, () => {
},
});

// 'Serverless:' prefix
const BasePrompt = require('inquirer/lib/prompts/base');
const originalGetQuestion = BasePrompt.prototype.getQuestion;
BasePrompt.prototype.getQuestion = function () {
this.opt.prefix = 'Serverless:';
// Here we want to override the default prefix which is equal to `chalk.green('?')`
this.opt.prefix = '';
return originalGetQuestion.call(this);
};

Expand Down

0 comments on commit edb8593

Please sign in to comment.