import * as jsYaml from "js-yaml" ; import * as fs from "fs" ; param fullFilePath returns function loadJs ( fullFilePath ) { const configMod = require ( fullFilePath ) ; if ( configMod . __esModule ) { if ( configMod . hasOwnProperty ( "default" ) ) { return configMod . default ; } else { try { Object . defineProperty ( configMod , "__esModule" , { enumerable : false } ) ; } catch { } } } return configMod ; } export = { json : loadJs , js : loadJs , yaml : ( fullDirPath ) => jsYaml . load ( fs . readFileSync ( fullDirPath , "utf8" ) ) , ts : loadJs , } ;