import { join } from 'path' ; import { homedir } from 'os' ; import { config , loadConfig } from '@app-config/main' ; async function main ( ) { await loadConfig ( { directory : join ( homedir ( ) , '.config' ) , fileNameBase : 'my-cli' , } , { directory : join ( __dirname , '..' ) , fileNameBase : '.app-config.schema' , } ) ; console . log ( { config } ) ; } main ( ) . catch ( ( error ) => { console . error ( error ) ; setTimeout ( ( ) => process . exit ( 1 ) , 0 ) ; } ) ;