Skip to content

Commit

Permalink
Get package version straight from package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Noodlez1232 committed Oct 29, 2024
1 parent 983696b commit cd53feb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/helpers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down

0 comments on commit cd53feb

Please sign in to comment.