mirror of
https://github.com/denoland/deno.git
synced 2025-01-03 04:48:52 -05:00
chore: update format script (#21811)
The PR referenced has been released so we can update this now.
This commit is contained in:
parent
824f4fa55f
commit
7c5c502773
1 changed files with 4 additions and 12 deletions
|
@ -9,22 +9,14 @@ const cmd = new Deno.Command("deno", {
|
||||||
"run",
|
"run",
|
||||||
"-A",
|
"-A",
|
||||||
"--no-config",
|
"--no-config",
|
||||||
"npm:dprint@0.43.0",
|
"npm:dprint@0.45.0",
|
||||||
subcommand,
|
subcommand,
|
||||||
"--config=" + configFile,
|
"--config=" + configFile,
|
||||||
],
|
],
|
||||||
cwd: ROOT_PATH,
|
cwd: ROOT_PATH,
|
||||||
stdout: "piped",
|
stdout: "inherit",
|
||||||
stderr: "inherit",
|
stderr: "inherit",
|
||||||
});
|
});
|
||||||
|
|
||||||
const { code, stdout } = await cmd.output();
|
const { code } = await cmd.output();
|
||||||
// todo(dsherret): temporary until https://github.com/denoland/deno/pull/21359 gets released.
|
Deno.exit(code);
|
||||||
// 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);
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue