From cf07c7873a772cae4e3e9b582dca0fdc8b1608fc Mon Sep 17 00:00:00 2001 From: Florian Dieminger <me@fiji-flo.de> Date: Mon, 21 Oct 2024 12:30:45 +0200 Subject: [PATCH] fix(rari-npm): use version from package.json --- rari-npm/lib/postinstall.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rari-npm/lib/postinstall.js b/rari-npm/lib/postinstall.js index a9a024e..c1d44e6 100644 --- a/rari-npm/lib/postinstall.js +++ b/rari-npm/lib/postinstall.js @@ -3,8 +3,9 @@ import { arch, platform } from "os"; import { join } from "path"; import { download, exists } from "./download.js"; +import * as packageJson from "../package.json" with { type: "json" }; -const VERSION = "v0.0.12"; +const VERSION = packageJson.version; const BIN_PATH = join(import.meta.dirname, "../bin"); const FORCE = JSON.parse(process.env.FORCE || "false"); const GITHUB_TOKEN = process.env.GITHUB_TOKEN;