Add context for versions:bump about version change and update tests

Signed-off-by: Shashank Bairy R <shashank.bairy04@gmail.com>
This commit is contained in:
Shashank Bairy R
2021-05-09 00:02:50 +05:30
parent d2eed74d35
commit 80f07624cd
2 changed files with 9 additions and 3 deletions
@@ -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 [
...breakingUpdates.entries(),
].sort()) {
console.log(
` ${chalk.yellow(name)} : ${chalk.yellow(from)} ~> ${chalk.yellow(
to,
)}`,
);
let path;
if (name.startsWith('@backstage/plugin-')) {