diff --git a/src/lib/helpers/index.ts b/src/lib/helpers/index.ts index c12eb5a..62b4b76 100644 --- a/src/lib/helpers/index.ts +++ b/src/lib/helpers/index.ts @@ -15,8 +15,8 @@ import "dotenv/config"; import json5 from "json5"; const { parse } = json5; -import { isSea, getAsset } from "node:sea"; -export const DownloaderVersion = isSea() ? getAsset("./version", "utf-8") : JSON.parse(readFileSync("./package.json", "utf-8")).version; +import pjson from "../../../package.json" with { type: "json" }; +export const DownloaderVersion = pjson.version; import type { PartialArgs, Settings } from "../types.js";