packages/build-tools/tasks/internal-tasks.js
async function mkDirs() {
  config = config || (await getConfig());

  try {
    return Promise.all([
      config.wwwDir ? mkdirp(config.wwwDir) : null,
      config.dataDir ? mkdirp(config.dataDir) : null,
      config.buildDir ? mkdirp(config.buildDir) : null,
    ]);
  } catch (error) {
    log.errorAndExit('Could not make all directories necessary.', error);
  }
}
async function mkDirs() {
  config = config || (await getConfig());

  try {
    return Promise.all([
      config.wwwDir ? mkdirp(config.wwwDir) : null,
      config.dataDir ? mkdirp(config.dataDir) : null,
      config.buildDir ? mkdirp(config.buildDir) : null,
    ]);
  } catch (error) {
    log.errorAndExit('Could not make all directories necessary.', error);
  }
}
async function mkDirs ( ) { config = config || ( await getConfig ( ) ) ; try { return Promise . all ( [ config . wwwDir ? mkdirp ( config . wwwDir ) : null , config . dataDir ? mkdirp ( config . dataDir ) : null , config . buildDir ? mkdirp ( config . buildDir ) : null , ] ) ; } catch ( error ) { log . errorAndExit ( 'Could not make all directories necessary.' , error ) ; } }
Makes all directories in config
@async
@returns {Promise}
Makes all directories in config