Describe the bug
vp migrate exits with a YAML parse error when .oxfmtrc.json contains valid single-line JSON ending in LF or CRLF.
The identical JSON without a final newline migrates successfully.
Pretty-printing it across multiple lines also succeeds, including with a final newline.
Reproduction
https://github.com/TheAlexLichter/vite-plus-reproduction/tree/migrate-oxfmt-trailing-newline
Steps to reproduce
See README of the branch for more details as necessary.
System Info
Vite+ CLI: 0.3.0
Initial project Vite: 8.2.2
Node: 24.21.0
pnpm: 12.3.4
OS: macOS arm64
No local Vite+ installation before migration
Used Package Manager
pnpm
Logs
Validations
Describe the bug
vp migrateexits with a YAML parse error when.oxfmtrc.jsoncontains valid single-line JSON ending in LF or CRLF.The identical JSON without a final newline migrates successfully.
Pretty-printing it across multiple lines also succeeds, including with a final newline.
Reproduction
https://github.com/TheAlexLichter/vite-plus-reproduction/tree/migrate-oxfmt-trailing-newline
Steps to reproduce
See README of the branch for more details as necessary.
System Info
Vite+ CLI: 0.3.0 Initial project Vite: 8.2.2 Node: 24.21.0 pnpm: 12.3.4 OS: macOS arm64 No local Vite+ installation before migrationUsed Package Manager
pnpm
Logs
Validations