Skip to content

Commit

Permalink
fix(cli): 获取到确切的 latest vertion
Browse files Browse the repository at this point in the history
  • Loading branch information
Pines-Cheng committed Dec 26, 2019
1 parent c3c9929 commit d7f2ca5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ async function getTargetVersion () {
version: semver.major(currentTaroVersion).toString()
})
} catch (e) {
targetTaroVersion = 'latest'
targetTaroVersion = await getLatestVersion(pkgName)
}
}
return targetTaroVersion
Expand Down

0 comments on commit d7f2ca5

Please sign in to comment.