message: refactor: use async / await in getNextPagesFromBuildDir
diff: @@ -11,8 +11,9 @@ const logPages = nextPages => {
  logger.log(`Found next pages: ${pageNames.join(" | ")}`);
  };
  -module.exports = buildDir => {
  - return readdirAsync(buildDir).then(pageFileNames => {
  +module.exports = async buildDir => {
  + const pageFileNames = await readdirAsync(buildDir);
  +
  const nextPages = pageFileNames
  .map(fileName => {
  const pagePath = path.join(buildDir, fileName);
  @@ -24,5 +25,4 @@ module.exports = buildDir => {
  logPages(nextPages);
  return nextPages;
  - });
  };
  