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);