appropriately update the updatedocsciFn in Language-Settings. It would only update an EXISTING package w/ the appropriate version target for Preview.
@@ -242,8 +242,8 @@ function Update-python-CIConfig($pkgs, $ciRepo, $locationInDocRepo, $monikerId=$
$existingPackageDef.package_info.version = ">=$($releasingPkg.PackageVersion)"
}
else {
- if ($def.version) {
- $def.PSObject.Properties.Remove('version')
+ if ($existingPackageDef.package_info.version) {
+ $existingPackageDef.package_info.PSObject.Properties.Remove('version')
}
}
}
@@ -256,6 +256,11 @@ function Update-python-CIConfig($pkgs, $ciRepo, $locationInDocRepo, $monikerId=$
}
exclude_path = @("test*","example*","sample*","doc*")
}
+
+ if ($releasingPkg.IsPrerelease) {
+ $newItem.package_info | Add-Member -NotePropertyName version -NotePropertyValue ">=$($releasingPkg.PackageVersion)"
+ }
+
$allJson.packages += $newItem
}
}
