import { CliInfo } from "./CliInfo" ; param absolutePathToPackageJson export function cliInfoFromPackageJson ( absolutePathToPackageJson ) { const pkgJson = require ( absolutePathToPackageJson ) as { name : string ; version : string ; } ; return { appName : pkgJson . name , version : pkgJson . version || "0.0.1" , } ; }