diff options
author | Satya Rohith <me@satyarohith.com> | 2022-07-21 14:15:15 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-21 14:15:15 +0530 |
commit | e98e0da8b218aa2b68d82ee7d777f499b10237aa (patch) | |
tree | 05cc660c005c35bdc27a4f37be295a0f06a3ccee /tools/lint.js | |
parent | f0e01682cce638303e3b6997788667a0f71dff8d (diff) |
fix(tools): upgrade to new `Deno.spawn` api (#15265)
Diffstat (limited to 'tools/lint.js')
-rwxr-xr-x | tools/lint.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/lint.js b/tools/lint.js index f1fa96a2c..ee438ed8b 100755 --- a/tools/lint.js +++ b/tools/lint.js @@ -40,12 +40,12 @@ async function dlint() { const chunks = splitToChunks(sourceFiles, `${execPath} run`.length); for (const chunk of chunks) { - const { status } = await Deno.spawn(execPath, { + const { success } = await Deno.spawn(execPath, { args: ["run", "--config=" + configFile, ...chunk], stdout: "inherit", stderr: "inherit", }); - if (!status.success) { + if (!success) { throw new Error("dlint failed"); } } @@ -71,12 +71,12 @@ async function dlintPreferPrimordials() { const chunks = splitToChunks(sourceFiles, `${execPath} run`.length); for (const chunk of chunks) { - const { status } = await Deno.spawn(execPath, { + const { success } = await Deno.spawn(execPath, { args: ["run", "--rule", "prefer-primordials", ...chunk], stdout: "inherit", stderr: "inherit", }); - if (!status.success) { + if (!success) { throw new Error("prefer-primordials failed"); } } @@ -108,7 +108,7 @@ async function clippy() { cmd.push("--release"); } - const { status } = await Deno.spawn("cargo", { + const { success } = await Deno.spawn("cargo", { args: [ ...cmd, "--", @@ -124,7 +124,7 @@ async function clippy() { stdout: "inherit", stderr: "inherit", }); - if (!status.success) { + if (!success) { throw new Error("clippy failed"); } } |