Skip to content

Commit

Permalink
Merge pull request #53 from Pure-D/fix-bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya authored Jul 20, 2021
2 parents 58a8e03 + 2feb6ee commit a777d3a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
"includeNodeModules": {
"atom": false,
"electron": false,
"atom-languageclient": false
"atom-languageclient": false,
"fs-extra": false
},
"isLibrary": true
}
Expand Down
3 changes: 2 additions & 1 deletion src/installation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ async function getServeDVersion(file: string) {

/** Check if the given serve-d is up to date against the target version */
async function isServeDUpToDate(givenFile: string, targetFile: string) {
const semverCompare = (await import("semver/functions/compare")).default
// @ts-ignore
const semverCompare = (await import("semver/functions/compare")) as typeof import("semver/functions/compare")
const [givenVersion, targetVersion] = await Promise.all([getServeDVersion(givenFile), getServeDVersion(targetFile)])
if (
typeof givenVersion === "string" &&
Expand Down

0 comments on commit a777d3a

Please sign in to comment.