docs: function readDirSync (dir, allFiles = []) {
    const files = fs.readdirSync(dir).map(f => join(dir, f))
    allFiles.push(...files)
    files.forEach(f => {
      fs.statSync(f).isDirectory() && readDirSync(f, allFiles)
    })
    return allFiles
  }