packages/build-tools/utils/general.js
async function dirExists(path) {
  try {
    const stats = await stat(path);
    return stats.isDirectory() ? true : false;
  } catch (err) {
    return false;
  }
}
async function dirExists(path) {
  try {
    const stats = await stat(path);
    return stats.isDirectory() ? true : false;
  } catch (err) {
    return false;
  }
}
async function dirExists ( path ) { try { const stats = await stat ( path ) ; return stats . isDirectory ( ) ? true : false ; } catch ( err ) { return false ; } }
Check if a directory exists
@param path {string} - Path to the directory to check
Check if a directory exists