Skip to content

Commit 90fed1b

Browse files
committed
Update regex to catch dependencies
1 parent 4ea313d commit 90fed1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/packaging/createupmpackages.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ foreach ($entry in $packages.GetEnumerator()) {
159159

160160
# Apply the version number to the package json file
161161
$packageJsonPath = "$packagePath/package.json"
162-
((Get-Content -Path $packageJsonPath -Raw) -Replace '("version\": )"([0-9.]+-?[a-zA-Z0-9.]*|%version%)', "`$1`"$Version") | Set-Content -Path $packageJsonPath -NoNewline
162+
((Get-Content -Path $packageJsonPath -Raw) -Replace '("version": |"com\.microsoft\.mixedreality\.toolkit\.\w+": )"([0-9.]+-?[a-zA-Z0-9.]*|%version%)', "`$1`"$Version") | Set-Content -Path $packageJsonPath -NoNewline
163163

164164
Write-Output "======================="
165165
Write-Output "Creating $scope.$product.$packageName"

0 commit comments

Comments
 (0)