Skip to content

Commit

Permalink
update message matches new upgrade API
Browse files Browse the repository at this point in the history
  • Loading branch information
JReinhold committed Jan 12, 2024
1 parent 2ac5b32 commit 9cb3fe6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions code/lib/core-server/src/utils/update-check.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ export function createUpdateMessage(updateInfo: VersionCheck, version: string):

try {
const isPrerelease = semver.prerelease(updateInfo.data.latest.version);
const suffix = isPrerelease ? '@next upgrade --prerelease' : '@latest upgrade';
const upgradeCommand = `npx storybook${suffix}`;
const upgradeCommand = `npx storybook@${isPrerelease ? 'next' : 'latest'} upgrade`;
updateMessage =
updateInfo.success && semver.lt(version, updateInfo.data.latest.version)
? dedent`
Expand Down

0 comments on commit 9cb3fe6

Please sign in to comment.