Add information about submitting paid apps on our publisher portal

parent f1ae8d47
......@@ -97,6 +97,20 @@ export default class Submit extends Command {
flags.update = !(isNewApp as any).isNew;
}
if (!flags.update) {
const isFreeQuestion: any = await inquirer.prompt([{
type: 'confirm',
name: 'isFree',
message: 'Is this App free or will it require payment?',
default: true,
}]);
if (!isFreeQuestion.isFree) {
this.error('Paid Apps must be submitted via our Publisher Portal:'
+ 'https://marketplace.rocket.chat/publisher/new/app');
}
}
let selectedCategories = new Array<string>();
if (flags.categories) {
selectedCategories = flags.categories.split(',');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment