From d55c9f57a5b3ce455e0ab06475aa6add30c2b861 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Tue, 9 Jul 2024 20:19:14 +0300 Subject: [PATCH] squash! Signed-off-by: Nikola Hristov --- Source/Function/File.ts | 8 ++------ Source/Variable/ESBuild.ts | 9 +++------ 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/Source/Function/File.ts b/Source/Function/File.ts index 2396435..9bb1a75 100644 --- a/Source/Function/File.ts +++ b/Source/Function/File.ts @@ -15,9 +15,7 @@ export default (async (...[Path]: Parameters) => { ( await import("path") ).dirname( - ( - await import("url") - ).fileURLToPath(import.meta.url), + (await import("url")).fileURLToPath(import.meta.url), ), ) )?.compilerOptions, @@ -36,9 +34,7 @@ export default (async (...[Path]: Parameters) => { Path.replace(".ts", ".js"), (await import("typescript")).default.transpile( ( - await ( - await import("fs/promises") - ).readFile(Path, "utf-8") + await (await import("fs/promises")).readFile(Path, "utf-8") ).toString(), Option, ), diff --git a/Source/Variable/ESBuild.ts b/Source/Variable/ESBuild.ts index 81df52b..ed62997 100644 --- a/Source/Variable/ESBuild.ts +++ b/Source/Variable/ESBuild.ts @@ -20,12 +20,9 @@ export default { onStart(async () => { try { outdir - ? await (await import("fs/promises")).rm( - outdir, - { - recursive: true, - }, - ) + ? await (await import("fs/promises")).rm(outdir, { + recursive: true, + }) : {}; } catch (_Error) { console.log(_Error);