From 82992ed1199a1197a2ed248ccfe13bba844254a4 Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Tue, 20 Jul 2021 05:15:47 -0500 Subject: [PATCH 1/2] fix: fix fs-extra error by not bundling it --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 369509d..7375f2c 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,8 @@ "includeNodeModules": { "atom": false, "electron": false, - "atom-languageclient": false + "atom-languageclient": false, + "fs-extra": false }, "isLibrary": true } From 2feb6ee353631d34b24fec26c002b41bcd8480f1 Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Tue, 20 Jul 2021 05:20:11 -0500 Subject: [PATCH 2/2] fix: fix semver dynamic import --- src/installation.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/installation.ts b/src/installation.ts index ef1a08f..b0e50ac 100644 --- a/src/installation.ts +++ b/src/installation.ts @@ -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" &&