chore: fix release script type

This commit is contained in:
Evan You 2024-06-10 17:37:20 +08:00
parent 188f3ae533
commit b7f6c54f67
No known key found for this signature in database
GPG Key ID: B9D421896CA450FB
1 changed files with 1 additions and 1 deletions

View File

@ -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}`)