import globby from 'globby' ; import { REPO_ROOT } from '@kbn/utils' ; import { run } from '@kbn/dev-utils' ; import { File } from './file' ; import { checkFileCasing } from './precommit_hook/check_file_casing' ; run ( async ( { log } ) => { const paths = await globby ( '**/*' , { cwd : REPO_ROOT , onlyFiles : true , gitignore : true , ignore : [ '**/node_modules' , ] , } ) ; const files = paths . map ( ( path ) => new File ( path ) ) ; await checkFileCasing ( log , files ) ; } ) ;