From 3e52bfb5c4b2c00b12d687853fa3687dfd9e3356 Mon Sep 17 00:00:00 2001 From: Benjamin Fischer <61995275+c4spar@users.noreply.github.com> Date: Wed, 13 Jul 2022 23:09:49 +0200 Subject: [PATCH] fix(runtime): add missing import (#87) --- src/runtime/deps.ts | 1 + src/runtime/process.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/runtime/deps.ts b/src/runtime/deps.ts index 72d3d1a..c98b548 100755 --- a/src/runtime/deps.ts +++ b/src/runtime/deps.ts @@ -20,6 +20,7 @@ export type { WritableStreamFromWriterOptions as IOWritableStreamFromWriterOptions, } from "https://deno.land/std@0.140.0/io/mod.ts"; export * as streams from "https://deno.land/std@0.140.0/streams/mod.ts"; +export { writeAll } from "https://deno.land/std@0.140.0/streams/mod.ts"; export type { ReadableStreamFromReaderOptions, WritableStreamFromWriterOptions, diff --git a/src/runtime/process.ts b/src/runtime/process.ts index 18cd503..be32c03 100644 --- a/src/runtime/process.ts +++ b/src/runtime/process.ts @@ -1,4 +1,4 @@ -import { Deferred, deferred } from "./deps.ts"; +import { Deferred, deferred, writeAll } from "./deps.ts"; import { readLines } from "./lib/readline.ts"; import { ProcessError } from "./process_error.ts"; import { ProcessOutput } from "./process_output.ts"; @@ -262,7 +262,7 @@ async function read( result.push(line + "\n"); } if ($.verbose > 1) { - await io.writeAll( + await writeAll( outputStream, new TextEncoder().encode(line + "\n"), );