Skip to content

Commit a777d3a

Browse files
authored
Merge pull request #53 from Pure-D/fix-bugs
2 parents 58a8e03 + 2feb6ee commit a777d3a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@
4141
"includeNodeModules": {
4242
"atom": false,
4343
"electron": false,
44-
"atom-languageclient": false
44+
"atom-languageclient": false,
45+
"fs-extra": false
4546
},
4647
"isLibrary": true
4748
}

src/installation.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ async function getServeDVersion(file: string) {
4242

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

0 commit comments

Comments
 (0)