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

11 lines (10 loc) 288 B
import fs from "@reliverse/relifso"; import path from "path"; export function getPackageInfo(cwd) { const packageJsonPath = cwd ? path.join(cwd, "package.json") : path.join("package.json"); try { return fs.readJSONSync(packageJsonPath); } catch (error) { throw error; } }