chore(cli): backend plugins should have the backend suffix

This commit is contained in:
blam
2020-10-12 22:19:50 +02:00
parent 08c392815b
commit 0b2a13b5c9
@@ -224,9 +224,12 @@ export default async (cmd: Command) => {
}
const answers: Answers = await inquirer.prompt(questions);
const name = cmd.scope
const pluginName = cmd.scope
? `@${cmd.scope.replace(/^@/, '')}/plugin-${answers.id}`
: `plugin-${answers.id}`;
const name = cmd.backend ? `${pluginName}-backend` : pluginName;
const npmRegistry = cmd.npmRegistry && cmd.scope ? cmd.npmRegistry : '';
const privatePackage = cmd.private === false ? false : true;
const isMonoRepo = await fs.pathExists(paths.resolveTargetRoot('lerna.json'));