Skip to content

Commit

Permalink
fix(cli): 修复 update 命令
Browse files Browse the repository at this point in the history
  • Loading branch information
Chen-jj committed Jul 8, 2020
1 parent bab207a commit f84b684
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/taro-cli/src/presets/commands/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default (ctx: IPluginContext) => {
} else {
try {
targetTaroVersion = await getLatestVersion(pkgName, {
version: 'next'
version: 'latest'
})
} catch (e) {
targetTaroVersion = await getLatestVersion(pkgName)
Expand Down

0 comments on commit f84b684

Please sign in to comment.