Skip to content

Commit

Permalink
chore(cli): add npm command to upgrade notice (#14621)
Browse files Browse the repository at this point in the history
A colleague had to go look up the command to update the CDK CLI. It occurred to me that is probably common with developers who don't work with NPM on a daily basis, such as anyone who isn't developing in TypeScript or JavaScript.

Put the necessary command right in the upgrade notice.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
Jerry Kindall authored May 11, 2021
1 parent 461f458 commit 5858a36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/aws-cdk/lib/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export async function displayVersionMessage(): Promise<void> {
if (laterVersion) {
const bannerMsg = formatAsBanner([
`Newer version of CDK is available [${colors.green(laterVersion as string)}]`,
'Upgrade recommended',
'Upgrade recommended (npm install -g aws-cdk)',
]);
bannerMsg.forEach((e) => print(e));
}
Expand Down

0 comments on commit 5858a36

Please sign in to comment.