]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
build: fix variables
authorEduardo San Martin Morote <posva13@gmail.com>
Fri, 3 Sep 2021 14:29:18 +0000 (16:29 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Fri, 3 Sep 2021 14:29:18 +0000 (16:29 +0200)
scripts/release.mjs

index 022f4ef6bf7ae73c5705dbf6fd2c1298e65d1c3c..a404617d84d0ebaf691dd3c22892e07d9ff5143c 100644 (file)
@@ -150,7 +150,7 @@ async function main() {
     })
   )
 
-  const { yes } = await prompt({
+  const { yes: isReleaseConfirmed } = await prompt({
     type: 'confirm',
     name: 'yes',
     message: `Releasing \n${pkgWithVersions
@@ -161,7 +161,7 @@ async function main() {
       .join('\n')}\nConfirm?`,
   })
 
-  if (!yes) {
+  if (!isReleaseConfirmed) {
     return
   }
 
@@ -180,13 +180,13 @@ async function main() {
     )
   }
 
-  const { yes } = await prompt({
+  const { yes: isChangelogCorrect } = await prompt({
     type: 'confirm',
     name: 'yes',
     message: 'Are the changelogs correct?',
   })
 
-  if (!yes) {
+  if (!isChangelogCorrect) {
     return
   }