From af8d9813db60618b256b178c818bafcac2170e6f Mon Sep 17 00:00:00 2001 From: AHQ Miness Date: Sun, 1 Sep 2024 20:16:38 +0530 Subject: [PATCH] fix --- index.mjs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index.mjs b/index.mjs index 067f6a5..9cbff63 100644 --- a/index.mjs +++ b/index.mjs @@ -1,6 +1,10 @@ import { Octokit } from "octokit"; +import { join } from "path"; +import { readFileSync } from "fs"; -import { version } from "./tauri/package.json"; +const data = readFileSync(join(__dirname, "tauri", "package.json")).toString(); + +const { version } = JSON.parse(data); export default async function () { const client = new Octokit({