Skip to content

Commit

Permalink
fix: Suppress logging, restore temp file removal.
Browse files Browse the repository at this point in the history
  • Loading branch information
darkobits committed Jun 26, 2023
1 parent bfa8b76 commit 0f56108
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/configuration/strategies/babel-register.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -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) {
Expand Down

0 comments on commit 0f56108

Please sign in to comment.