From fa89f01c94fd4524e5bafa809b53c4cd1a994346 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elias=20Sj=C3=B6green?= Date: Sun, 3 Mar 2024 16:04:45 +0100 Subject: [PATCH] fix: deno.json import --- src/ffi.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ffi.ts b/src/ffi.ts index 13d2a0a..7b58a61 100644 --- a/src/ffi.ts +++ b/src/ffi.ts @@ -1,8 +1,9 @@ -import { version } from "../deno.json" with { type: "json" }; +import manifest from "../deno.json" with { type: "json" }; import { dlopen, download } from "@denosaurs/plug"; import { Webview } from "./webview.ts"; +const version = manifest.version; const cache = Deno.env.get("PLUGIN_URL") === undefined ? "use" : "reloadAll"; const url = Deno.env.get("PLUGIN_URL") ?? `https://github.com/webview/webview_deno/releases/download/${version}/`;