hasPackage (packageName, semverCondition) {
    const json = getPackageJson(packageName, this.appDir)

    if (json === void 0) {
      return false
    }

    return semverCondition !== void 0
      ? semver.satisfies(json.version, semverCondition)
      : true
  }
Check if a host app package is installed. Can also
check its version against specific semver condition.

Example of semver condition:
  '1.x || >=2.5.0 || 5.0.0 - 7.2.3'

@param {string} packageName
@param {string} semverCondition
@return {boolean} package is installed and meets optional semver condition