 path = require 'path'
-normalizePackageData = require 'normalize-package-data'
+normalizePackageData = null
 
 _ = require 'underscore-plus'
 async = require 'async'


    @resourcePathWithTrailingSlash ?= "#{atom.packages.resourcePath}#{path.sep}"
    packagePath?.startsWith(@resourcePathWithTrailingSlash)

  @loadMetadata: (packagePath, ignoreErrors=false) ->
    packageName = path.basename(packagePath)

      if metadataPath = CSON.resolve(path.join(packagePath, 'package'))
        try
          metadata = CSON.readFileSync(metadataPath)
          @normalizeMetadata(metadata)
        catch error
          throw error unless ignoreErrors

