UNPKG

@forwardslashns/fws-cli

Version:

CLI meant to work together with other Forwardslash boilerplates.

10 lines (8 loc) 341 B
import { getPackageJson } from './getPackageJson.js'; import { getPackageJsonAndRootPath } from './getPackageJsonAndRootPath.js'; export const resolvePackageJson = () => { const paths = getPackageJsonAndRootPath(); if (!paths.jsonPath) return null; const packageJson = getPackageJson(paths.jsonPath); return packageJson; };