UNPKG

@reliverse/rse

Version:

@reliverse/rse is your all-in-one companion for bootstrapping and improving any kind of projects (especially web apps built with frameworks like Next.js) — whether you're kicking off something new or upgrading an existing app. It is also a little AI-power

9 lines (8 loc) 331 B
import fs from "@reliverse/relifso"; import path from "node:path"; import { PKG_ROOT } from "../constants.js"; export const getLatestCLIVersion = () => { const packageJsonPath = path.join(PKG_ROOT, "package.json"); const packageJsonContent = fs.readJSONSync(packageJsonPath); return packageJsonContent.version ?? "1.0.0"; };