function getExampleFolders() {
  const dir = 'examples';
  return fs.readdirSync(dir).filter((file) => {
    return (
      fs.statSync(path.join(dir, file)).isDirectory() &&
      fs.existsSync(path.join(dir, file, 'package.json'))
    );
  });
}
Find the folders in examples that have package.json files.
@returns {Array<string>} A list of directories to prepare.