From 35cba88c68515365046470ea6f2771b2033e43c9 Mon Sep 17 00:00:00 2001 From: Cory Miller <13227161+cory-miller@users.noreply.github.com> Date: Fri, 17 Feb 2023 20:09:53 +0000 Subject: [PATCH] windows... --- packages/io/src/io.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/io/src/io.ts b/packages/io/src/io.ts index 1720ce11..e122c26f 100644 --- a/packages/io/src/io.ts +++ b/packages/io/src/io.ts @@ -4,6 +4,7 @@ import * as path from 'path' import {promisify} from 'util' import * as ioUtil from './io-util' +const exec = promisify(childProcess.exec) const execFile = promisify(childProcess.execFile) /** @@ -125,6 +126,7 @@ export async function rmRF(inputPath: string): Promise { 'File path must not contain `*`, `"`, `<`, `>` or `|` on Windows' ) } + console.log('a') try { const cmdPath = ioUtil.getCmdPath() @@ -162,7 +164,7 @@ export async function rmRF(inputPath: string): Promise { // other errors are valid if (err.code !== 'ENOENT') throw err } - + console.log('b') // Shelling out fails to remove a symlink folder with missing source, this unlink catches that try { await ioUtil.unlink(inputPath)