import { readJson } from 'fs-extra' ; import { TGetPackageJsonConfigContentFromProvidedPackagePath } from '../../types' ; /**
 * Find and read JSON content of package.json file from the provided package path directory.
 */ const getPackageJsonConfigContentFromProvidedPackagePath = async ( pathToPackageToSearchIn ) => { const pathToPackageJsonConfig = `${ pathToPackageToSearchIn }/package.json` ; const packagePkgJsonConfigContent = ( await readJson ( pathToPackageJsonConfig ) ) as Record < string , any > ; return packagePkgJsonConfigContent ; } ; export default getPackageJsonConfigContentFromProvidedPackagePath ;