Merge pull request #5623 from BA1RY/feat/cli-context-version-bump

cli: context for version:bump about version change
This commit is contained in:
Ben Lambert
2021-05-10 11:15:03 +02:00
committed by GitHub
3 changed files with 14 additions and 3 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/cli': patch
---
Add context for versions:bump on what version it was bumped to. Updated tests for the same.
@@ -136,7 +136,7 @@ describe('bump', () => {
'bumping @backstage/theme in b to ^2.0.0',
'Running yarn install to install new versions',
'⚠️ The following packages may have breaking changes:',
' @backstage/theme',
' @backstage/theme : 1.0.0 ~> 2.0.0',
' https://github.com/backstage/backstage/blob/master/packages/theme/CHANGELOG.md',
'Version bump complete!',
]);
+8 -2
View File
@@ -195,8 +195,14 @@ export default async () => {
);
console.log();
for (const name of Array.from(breakingUpdates.keys()).sort()) {
console.log(` ${chalk.yellow(name)}`);
for (const [name, { from, to }] of Array.from(
breakingUpdates.entries(),
).sort()) {
console.log(
` ${chalk.yellow(name)} : ${chalk.yellow(from)} ~> ${chalk.yellow(
to,
)}`,
);
let path;
if (name.startsWith('@backstage/plugin-')) {