We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82992ed commit 2feb6eeCopy full SHA for 2feb6ee
src/installation.ts
@@ -42,7 +42,8 @@ async function getServeDVersion(file: string) {
42
43
/** Check if the given serve-d is up to date against the target version */
44
async function isServeDUpToDate(givenFile: string, targetFile: string) {
45
- const semverCompare = (await import("semver/functions/compare")).default
+ // @ts-ignore
46
+ const semverCompare = (await import("semver/functions/compare")) as typeof import("semver/functions/compare")
47
const [givenVersion, targetVersion] = await Promise.all([getServeDVersion(givenFile), getServeDVersion(targetFile)])
48
if (
49
typeof givenVersion === "string" &&
0 commit comments