Skip to content

Commit

Permalink
Tweak order of questions
Browse files Browse the repository at this point in the history
  • Loading branch information
thekevinscott committed Mar 3, 2022
1 parent b94a0fe commit b9f6ff7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/package-scripts/update-version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,17 +105,17 @@ const updateVersion = () => new Promise(resolve => {
choices: AVAILABLE_PACKAGES,
},
{
name: 'commit',
message: `Do you wish to commit changes`,
name: 'updateDependencies',
message: `Since UpscalerJS's version will be updated, do you also want to update packages (like examples) that reference it?`,
type: 'confirm',
default: true,
when: ({ packages }: Omit<Answers, 'updateDependencies'>) => packages.includes('UpscalerJS'),
},
{
name: 'updateDependencies',
message: `Since UpscalerJS's version will be updated, do you also want to update packages (like examples) that reference it?`,
name: 'commit',
message: `Do you wish to commit changes`,
type: 'confirm',
default: true,
when: ({ packages }: Omit<Answers, 'updateDependencies'>) => packages.includes('UpscalerJS'),
},
]).then(async ({ version, packages, commit, updateDependencies }) => {
if (!isValidVersion(version)) {
Expand Down

0 comments on commit b9f6ff7

Please sign in to comment.