import * as path from 'path' ; import { JsonFile } from '@rushstack/node-core-library' ; import type { IFindSubProjectConfig } from '../projects/get-projects' ; import { getMonorepoBaseData } from './monorepo' ; const defaultConfig = { } ; export const getFinalConfig = async ( currentPath = process . cwd ( ) ) => { const monorepo = getMonorepoBaseData ( currentPath ) ; const userConfig = await JsonFile . loadAsync ( path . resolve ( monorepo . rootPath , 'mono-config.json' ) ) ; const config = { ... defaultConfig , ... userConfig } ; return { monorepo , config } ; } ; export type { PackageManagerType } from './monorepo' ;