From 6bb14c42ee8e9e88015103686c3b836e6da5ade2 Mon Sep 17 00:00:00 2001 From: Vallie Joseph Date: Tue, 14 Mar 2023 03:52:20 +0000 Subject: [PATCH] Adding version check --- packages/io/__tests__/io.test.ts | 2 ++ packages/io/src/io-util.ts | 1 - packages/io/src/io.ts | 2 -- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/io/__tests__/io.test.ts b/packages/io/__tests__/io.test.ts index 3fd1c64a..324ba1e5 100644 --- a/packages/io/__tests__/io.test.ts +++ b/packages/io/__tests__/io.test.ts @@ -353,6 +353,8 @@ describe('rmRF', () => { // // can't remove folder with locked file on windows if (ioUtil.IS_WINDOWS) { + // eslint-disable-next-line no-console + console.debug(`Version: ${process.versions.node.split('.')[0]}`) try { // additionally, can't stat an open file on Windows without getting EPERM await io.rmRF(testPath) diff --git a/packages/io/src/io-util.ts b/packages/io/src/io-util.ts index cb4a2c46..6cfd11c4 100644 --- a/packages/io/src/io-util.ts +++ b/packages/io/src/io-util.ts @@ -1,6 +1,5 @@ import * as fs from 'fs' import * as path from 'path' - export const { access, chmod, diff --git a/packages/io/src/io.ts b/packages/io/src/io.ts index 29353aa2..25ee0c46 100644 --- a/packages/io/src/io.ts +++ b/packages/io/src/io.ts @@ -119,8 +119,6 @@ export async function rmRF(inputPath: string): Promise { ) } } - // eslint-disable-next-line no-console - console.debug(`Version: ${process.version}`) ioUtil.rm(inputPath, { force: true, maxRetries: 3,