Skip to content

Commit ca93669

Browse files
Fix BOM in package.json
1 parent ea333a5 commit ca93669

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test-example.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ function Process-AspNetCoreProject {
231231
if ($updated) {
232232
#$packageJson | ConvertTo-Json -Depth 10 | Set-Content -Path $packageJsonPath -Encoding UTF8
233233
$jsonContent = $packageJson | ConvertTo-Json -Depth 10
234-
[System.IO.File]::WriteAllText($packageJsonPath, $jsonContent, [System.Text.Encoding]::UTF8)
234+
[System.IO.File]::WriteAllText($packageJsonPath, $jsonContent, [System.Text.UTF8Encoding]::new($false))
235235
Write-Host "Updated package.json with valid versions."
236236
} else {
237237
Write-Host "No matching dependencies found in package.json to update."

0 commit comments

Comments
 (0)