From 0f56108d589e1c33b91872bea7ba813d1fc61667 Mon Sep 17 00:00:00 2001 From: Joshua Date: Mon, 26 Jun 2023 09:10:04 -0700 Subject: [PATCH] fix: Suppress logging, restore temp file removal. --- src/lib/configuration/strategies/babel-register.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/configuration/strategies/babel-register.ts b/src/lib/configuration/strategies/babel-register.ts index 0ba494c..19dc7a9 100644 --- a/src/lib/configuration/strategies/babel-register.ts +++ b/src/lib/configuration/strategies/babel-register.ts @@ -98,7 +98,7 @@ export async function babelRegisterStrategy(filePath: string, pkgInfo: PackageIn `; if (tsConfigFilePath) { - log.info(log.prefix('babelRegisterStrategy'), `Loaded tsconfig.json from: ${log.chalk.green(tsConfigFilePath)}`); + log.silly(log.prefix('babelRegisterStrategy'), `Loaded tsconfig.json from: ${log.chalk.green(tsConfigFilePath)}`); } const tempDir = path.resolve(pkgInfo.root, 'node_modules', '.saffron-config'); @@ -111,7 +111,7 @@ export async function babelRegisterStrategy(filePath: string, pkgInfo: PackageIn : wrapperWithoutTsConfig ); const result = await import(loaderPath); - // await fs.remove(tempDir); + await fs.remove(tempDir); return result.default ?? result; } catch (cause: any) {