Skip to content
This repository has been archived by the owner on Feb 5, 2023. It is now read-only.

Commit

Permalink
fix: Add missing "latest" option
Browse files Browse the repository at this point in the history
  • Loading branch information
ffflorian committed Jan 18, 2021
1 parent 413fe34 commit 02ffed2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ for (const [dependencyShortName, dependencyFullName] of Object.entries(Supported
const electronInfo = new ElectronInfo({
...(commanderOptions.debug && {debug: true}),
...(commanderOptions.force && {forceUpdate: true}),
...(commanderOptions.latest && {latest: true}),
...(commanderOptions.limit && {limit: parseInt(commanderOptions.limit, 10)}),
...(typeof commanderOptions.prereleases !== undefined && {electronPrereleases: commanderOptions.prereleases}),
...(commanderOptions.source && {releasesUrl: commanderOptions.source}),
Expand Down Expand Up @@ -121,6 +122,7 @@ commander
const electronInfo = new ElectronInfo({
...(commanderOptions.debug && {debug: true}),
...(commanderOptions.force && {forceUpdate: true}),
...(commanderOptions.latest && {latest: true}),
...(commanderOptions.limit && {limit: parseInt(commanderOptions.limit, 10)}),
...(typeof commanderOptions.prereleases !== undefined && {electronPrereleases: commanderOptions.prereleases}),
...(commanderOptions.source && {releasesUrl: commanderOptions.source}),
Expand Down

0 comments on commit 02ffed2

Please sign in to comment.