import { existsSync , exists } from "fs" ; import { join } from "path" ; export async function checkMesonIsConfigured ( dir ) { return ( await Promise . all ( [ existsP ( join ( dir , "meson-info" ) ) , existsP ( join ( dir , "meson-private" ) ) ] ) ) . every ( v => v ) ; } function existsP ( path ) { return new Promise < boolean > ( res => { exists ( path , res ) ; } ) ; }