anchor.diff:            if (packageVersionsOpt is Some) {
               final Version version =
                   packageVersionsOpt.get().versions.last.version;
  -            final versionConstraint =
  -                new VersionConstraint.compatibleWith(version);
  +            final isExported = exportedDependencyNames.contains(p.name);
  +            final versionConstraint = isExported
  +                ? new VersionRange(
  +                    min: version, max: version.nextPatch, includeMin: true)
  +                : new VersionConstraint.compatibleWith(version);
               return await new HostedReference(versionConstraint);
             } else if (useGitIfNotHosted) {
               return await new GitReference(
  
positive.code:   ProjectCommand setToHostedDependencies({bool useGitIfNotHosted: true}) =>
        projectCommandWithDependencies('change to hosted dependencies',
            (Project project, Iterable<Project> dependencies) async {
          await _setDependencies(
              project, 'hosted', dependencies, (Project p) async {
            final Option<HostedPackageVersions> packageVersionsOpt =
  
negative.code: 
    await Future.wait(dependencies.map((p) async {
      final ref = await createReferenceTo(p);
      _log.finest('created reference $ref to project ${p.name}');
      newDependencies[p.name] = ref;
    }));
  
  