     metadata._atomKeymaps = getKeymaps(appDir)
 
     grunt.file.write(path.join(appDir, 'package.json'), JSON.stringify(metadata))
+    not invalidPackages

      metadata = grunt.file.readJSON(metadataPath)
      continue unless metadata?.engines?.atom?

      normalizePackageData metadata, (msg) -> console.error(metadata.name, msg)

      moduleCache = metadata._atomModuleCache ? {}



    modulesDirectory = path.join(appDir, 'node_modules')
    packages = {}
    invalidPackages = false

    for moduleDirectory in fs.listSync(modulesDirectory)
      continue if path.basename(moduleDirectory) is '.bin'
