We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f767c3 commit cadd79aCopy full SHA for cadd79a
test-example.ps1
@@ -229,7 +229,9 @@ function Process-AspNetCoreProject {
229
}
230
231
if ($updated) {
232
- $packageJson | ConvertTo-Json -Depth 10 | Set-Content -Path $packageJsonPath -Encoding UTF8
+ #$packageJson | ConvertTo-Json -Depth 10 | Set-Content -Path $packageJsonPath -Encoding UTF8
233
+ $jsonContent = $packageJson | ConvertTo-Json -Depth 10
234
+ [System.IO.File]::WriteAllText($packageJsonPath, $jsonContent, [System.Text.Encoding]::UTF8)
235
Write-Host "Updated package.json with valid versions."
236
} else {
237
Write-Host "No matching dependencies found in package.json to update."
0 commit comments