Merge pull request #5623 from BA1RY/feat/cli-context-version-bump
cli: context for version:bump about version change
This commit is contained in:
@@ -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!',
|
||||
]);
|
||||
|
||||
@@ -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-')) {
|
||||
|
||||
Reference in New Issue
Block a user