summaryrefslogtreecommitdiff
path: root/tools/format.js
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-01-05 11:02:37 -0500
committerGitHub <noreply@github.com>2024-01-05 16:02:37 +0000
commit7c5c502773de135994bdc23e8bc5f705c3f5a0c5 (patch)
treed0ee3da70fae55ffb555c8ad8031e7aa35d2ca0d /tools/format.js
parent824f4fa55f5add7d0a71d56569493d5872915926 (diff)
chore: update format script (#21811)
The PR referenced has been released so we can update this now.
Diffstat (limited to 'tools/format.js')
-rwxr-xr-xtools/format.js16
1 files changed, 4 insertions, 12 deletions
diff --git a/tools/format.js b/tools/format.js
index 05bfeba55..dfc6f9b9e 100755
--- a/tools/format.js
+++ b/tools/format.js
@@ -9,22 +9,14 @@ const cmd = new Deno.Command("deno", {
"run",
"-A",
"--no-config",
- "npm:dprint@0.43.0",
+ "npm:dprint@0.45.0",
subcommand,
"--config=" + configFile,
],
cwd: ROOT_PATH,
- stdout: "piped",
+ stdout: "inherit",
stderr: "inherit",
});
-const { code, stdout } = await cmd.output();
-// todo(dsherret): temporary until https://github.com/denoland/deno/pull/21359 gets released.
-// Once it's released, just have stdout be inherited above and do `Deno.exit(code)` here.
-const stdoutText = new TextDecoder().decode(stdout);
-console.log(stdoutText);
-if (stdoutText.length > 0) {
- Deno.exit(20);
-} else {
- Deno.exit(code);
-}
+const { code } = await cmd.output();
+Deno.exit(code);