Skip to content

Commit

Permalink
fix(cli): populate new apps with latest version of deps in range (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
wKovacs64 authored Apr 23, 2020
1 parent 9de79ba commit 02ccc7d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/cli/src/utils/get-latest-version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ export const getLatestVersion = async (dependency: string, templateVersion: stri

const latestVersion = Object.keys(allVersions)
.filter((version) => version.startsWith(major))
.sort((a, b) => a.localeCompare(b, undefined, {numeric: true}))[0]
.sort((a, b) => a.localeCompare(b, undefined, {numeric: true}))
.reverse()[0]

// If the latest tagged version matches our pinned major, use that, otherwise use the
// latest untagged which does
Expand Down

0 comments on commit 02ccc7d

Please sign in to comment.