Browse Source

chore: fix release script type

Evan You 1 year ago
parent
commit
b7f6c54f67
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scripts/release.js

+ 1 - 1
scripts/release.js

@@ -145,7 +145,7 @@ async function main() {
         ['view', `${pkgName}@~${canaryVersion}`, 'version', '--json'],
         { stdio: 'pipe' },
       )
-      let versions = JSON.parse(stdout)
+      let versions = JSON.parse(/** @type {string} */ (stdout))
       versions = Array.isArray(versions) ? versions : [versions]
       const latestSameDayPatch = /** @type {string} */ (
         semver.maxSatisfying(versions, `~${canaryVersion}`)