UNPKG

@shadcn/ui

Version:

Add @shadcn/ui components to your app.

10 lines (7 loc) 243 B
import path from "path" import fs from "fs-extra" import { type PackageJson } from "type-fest" export function getPackageInfo() { const packageJsonPath = path.join("package.json") return fs.readJSONSync(packageJsonPath) as PackageJson }