4949 # Update package versions
5050 . $PSScriptRoot \update-versions.ps1 - PackagesRoot $ProjectRoot - PrereleaseTag $PrereleaseTag - Revision $Revision - BuildNumber $BuildNumber
5151
52- # Loop through package directories and copy documentation
52+ # Loop through package directories, copy documentation, and package
5353 Get-ChildItem - Path $ProjectRoot /*/ package.json | ForEach-Object {
5454 $packageName = Select-String - Pattern " org\.mixedrealitytoolkit\.\w+(\.\w+)*" - Path $_ | Select-Object - First 1
5555
@@ -73,28 +73,15 @@ try {
7373 else {
7474 Copy-Item - Path " $ProjectRoot /Pipelines/UPM/Documentation~" - Destination $docFolder - Recurse
7575 }
76- }
77-
78- # Package the package directories
79- Get-ChildItem - Path $ProjectRoot /*/ package.json | ForEach-Object {
80- $currentPackageName = Select-String - Pattern " org\.mixedrealitytoolkit\.\w+(\.\w+)*" - Path $_ | Select-Object - First 1
81-
82- if (-not $currentPackageName ) {
83- return # this is not an MRTK package, so skip
84- }
8576
8677 Write-Host " "
8778 Write-Host - ForegroundColor Green " ======================================="
8879 Write-Host - ForegroundColor Green " Packing Package"
8980 Write-Host - ForegroundColor Green " ======================================="
90- Write-Host " Package name: $currentPackageName "
81+ Write-Host " Package name: $packageName "
9182
92- $currentPackageName = $currentPackageName.Matches [0 ].Value
9383 $packageFriendlyName = (Select-String - Pattern " `" displayName`" : `" (.+)`" " - Path $_ | Select-Object - First 1 ).Matches.Groups[1 ].Value
9484
95- $packagePath = $_.Directory
96- $docFolder = " $packagePath /Documentation~"
97-
9885 # build the package
9986 npm pack $packagePath
10087
0 commit comments