Merge pull request #25370 from alper98/match-outout-plugin-type

feat: matching plugin type to output
This commit is contained in:
Ben Lambert
2024-06-24 13:37:30 +02:00
committed by GitHub
3 changed files with 7 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/cli': patch
---
Updated the scaffolding output message for `plugin-common` in `backstage-cli`. Now, when executing `backstage-cli new` to create a new `plugin-common` package, the output message accurately reflects the action by displaying `Creating common plugin package...` instead of the previous, less accurate `Creating backend plugin...`.
@@ -67,7 +67,7 @@ describe('pluginCommon factory', () => {
expect(modified).toBe(true);
expectLogsToMatch(output, [
'Creating backend plugin backstage-plugin-test-common',
'Creating common plugin package backstage-plugin-test-common',
'Checking Prerequisites:',
`availability plugins${sep}test-common`,
'creating temp dir',
@@ -46,7 +46,7 @@ export const pluginCommon = createFactory<Options>({
});
Task.log();
Task.log(`Creating backend plugin ${chalk.cyan(name)}`);
Task.log(`Creating common plugin package ${chalk.cyan(name)}`);
const targetDir = ctx.isMonoRepo
? paths.resolveTargetRoot('plugins', suffix)