UNPKG

storybook-framework-cedarjs

Version:

Storybook for CedarJS

14 lines (13 loc) 324 B
import fs from "fs"; import path from "path"; function readPackageJson() { const packageJsonPath = path.resolve("package.json"); if (!fs.existsSync(packageJsonPath)) { return false; } const jsonContent = fs.readFileSync(packageJsonPath, "utf8"); return JSON.parse(jsonContent); } export { readPackageJson };