Skip to content

Commit

Permalink
Merge pull request #14529 from storybookjs/fix-sb-upgrade-prerelease
Browse files Browse the repository at this point in the history
CLI: Fix prerelease upgrade
  • Loading branch information
shilman committed Apr 9, 2021
2 parents 0aa48ce + d273757 commit 29b248b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/cli/src/upgrade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ export const upgrade = async ({ prerelease, skipCheck, useNpm, dryRun }: Options

const flags = [];
if (!dryRun) flags.push('--upgrade');
if (prerelease) flags.push('--newest');
flags.push('--target');
flags.push(prerelease ? 'greatest' : 'latest');
const check = spawnSync('npx', ['npm-check-updates', '/storybook/', ...flags], {
stdio: 'pipe',
}).output.toString();
Expand Down

0 comments on commit 29b248b

Please sign in to comment.