Skip to content

Commit 202888c

Browse files
authored
need sync'd deno write for rendering the json and text versions (#1420)
1 parent 1e951e3 commit 202888c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/cli/lib/render.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ export function render(value: unknown, { json }: { json?: boolean } = {}) {
3535
if (json) {
3636
// For JSON mode, output raw JSON without additional formatting
3737
const jsonValue = `${JSON.stringify(value, null, 2)}\n`;
38-
Deno.stdout.write(encode(jsonValue));
38+
Deno.stdout.writeSync(encode(jsonValue));
3939
return;
4040
}
4141
// Append a `\n` to the stdout for TTY legibility and
4242
// unix file compatibility.
4343
const stringValue = `${stringify(value)}\n`;
44-
Deno.stdout.write(encode(stringValue));
44+
Deno.stdout.writeSync(encode(stringValue));
4545
}

0 commit comments

Comments
 (0)