Skip to content

Commit

Permalink
fix: allow newer versions than the bundelded version
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Feb 25, 2021
1 parent 7bf1e69 commit 0e46811
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/installation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ async function getServeDVersion(file: string) {
export async function isServeDUpToDate(givenFile: string, targetFile: string) {
const givenVersion = await getServeDVersion(givenFile)
const targetVersion = await getServeDVersion(targetFile)
return semverCompare(givenVersion, targetVersion) !== 0
return givenVersion && targetVersion && semverCompare(givenVersion, targetVersion) !== -1
}

async function copyServeD(codeDBinFolder: string) {
Expand Down

0 comments on commit 0e46811

Please sign in to comment.