From d155e954a108a1ec635672edf59d204bdc07f1f8 Mon Sep 17 00:00:00 2001 From: Cory Miller <13227161+cory-miller@users.noreply.github.com> Date: Tue, 21 Feb 2023 15:27:48 +0000 Subject: [PATCH] add debug for code --- packages/io/src/io.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/io/src/io.ts b/packages/io/src/io.ts index 42158703..104e3859 100644 --- a/packages/io/src/io.ts +++ b/packages/io/src/io.ts @@ -159,15 +159,16 @@ export async function rmRF(inputPath: string): Promise { console.log(`spawn: ${result.spawnargs}`) }) - result.stdout?.on('data', (data) => { + result.stdout?.on('data', data => { console.log(`stdout: ${data}`) - }); + }) - result.stderr?.on('data', (data) => { + result.stderr?.on('data', data => { console.log(`stdout: ${data}`) - }); + }) result.on('close', code => { + console.log(`close: ${code}`) resolve(code) }) })