import * as path from 'path' ; import * as fs from 'fs' ; var normalizedPath = path . join ( __dirname ) ; const data = { } ; fs . readdirSync ( normalizedPath ) . forEach ( function ( file ) { if ( file !== "index.ts" ) { Object . assign ( data , require ( `./${ file }` ) ) ; } } ) ; export default data ;