From 34a1b9f5c6d73a172e43c45ac3b2882751ec6ab3 Mon Sep 17 00:00:00 2001 From: Vallie Joseph Date: Fri, 17 Feb 2023 17:07:27 +0000 Subject: [PATCH] removing promsify --- packages/io/src/io.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/io/src/io.ts b/packages/io/src/io.ts index 23210ce5..6676bf49 100644 --- a/packages/io/src/io.ts +++ b/packages/io/src/io.ts @@ -6,7 +6,7 @@ import * as ioUtil from './io-util' // const exec = promisify(childProcess.exec) const execFile = promisify(childProcess.execFile) -const spawn = promisify(childProcess.spawn) +const spawn = childProcess.spawn /** * Interface for cp/mv options */ @@ -129,7 +129,7 @@ export async function rmRF(inputPath: string): Promise { try { const cmdPath = ioUtil.getCmdPath() if (await ioUtil.isDirectory(inputPath, true)) { - await spawn(cmdPath, [`/s /c "rd /s /q "%inputPath%""`], { + spawn(cmdPath, [`/s /c "rd /s /q "%inputPath%""`], { shell: false, env: {inputPath}, timeout: 500 @@ -138,7 +138,7 @@ export async function rmRF(inputPath: string): Promise { // env: {inputPath} // }) } else { - await spawn(cmdPath, [`/s /c "del /f /a "%inputPath%""`], { + spawn(cmdPath, [`/s /c "del /f /a "%inputPath%""`], { shell: false, env: {inputPath}, timeout: 500