Re-add prettier log-level=warn to generate-ts (#6528)

I added it in https://github.com/openai/codex/pull/6342 but it was
removed in
https://github.com/openai/codex/pull/5063/files#diff-e2aa6dad1e886b7765158a27aefd1be5de99baa71b44f6bc5ce3fe462b9ae5d3R135
as a result of a bad diamond merge
This commit is contained in:
Gabriel Peal 2025-11-11 18:30:01 -08:00 committed by GitHub
parent eb1c651c00
commit 424bfecd0b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -92,6 +92,8 @@ pub fn generate_ts(out_dir: &Path, prettier: Option<&Path>) -> Result<()> {
{
let status = Command::new(prettier_bin)
.arg("--write")
.arg("--log-level")
.arg("warn")
.args(ts_files.iter().map(|p| p.as_os_str()))
.status()
.with_context(|| format!("Failed to invoke Prettier at {}", prettier_bin.display()))?;