diff --git a/Source/Function/Build.ts b/Source/Function/Build.ts index 89d087c5..44b0795e 100644 --- a/Source/Function/Build.ts +++ b/Source/Function/Build.ts @@ -4,9 +4,9 @@ */ export default (async (...[File, Option]: Parameters) => { for (const _File of File) { - for (const __File of await (await import("fast-glob")).default( - _File.replaceAll("'", "").replaceAll('"', ""), - )) { + for (const __File of await ( + await import("fast-glob") + ).default(_File.replaceAll("'", "").replaceAll('"', ""))) { Pipe.push(__File); } } @@ -32,9 +32,9 @@ export default (async (...[File, Option]: Parameters) => { Configuration = Option?.ESBuild ? Merge( Configuration, - await (await import("@Function/File.js")).default( - Option.ESBuild, - ), + await ( + await import("@Function/File.js") + ).default(Option.ESBuild), ) : Configuration; @@ -54,7 +54,9 @@ export default (async (...[File, Option]: Parameters) => { await Context.watch(); } else { console.log( - await (await import("esbuild")).analyzeMetafile( + await ( + await import("esbuild") + ).analyzeMetafile( (await (await import("esbuild")).build(Configuration)) ?.metafile ?? "", { diff --git a/Source/Function/File.ts b/Source/Function/File.ts index 9bb1a75b..2b578faa 100644 --- a/Source/Function/File.ts +++ b/Source/Function/File.ts @@ -12,9 +12,7 @@ export default (async (...[Path]: Parameters) => { await import("../Function/JSON.js") ).default( "../../tsconfig.json", - ( - await import("path") - ).dirname( + (await import("path")).dirname( (await import("url")).fileURLToPath(import.meta.url), ), ) @@ -30,7 +28,9 @@ export default (async (...[Path]: Parameters) => { ) .emit(); - await (await import("fs/promises")).writeFile( + await ( + await import("fs/promises") + ).writeFile( Path.replace(".ts", ".js"), (await import("typescript")).default.transpile( ( @@ -43,9 +43,7 @@ export default (async (...[Path]: Parameters) => { return ( await import( - ( - await import("url") - ) + (await import("url")) .pathToFileURL(Path) .toString() .replace(".ts", ".js") diff --git a/Source/Variable/ESBuild.ts b/Source/Variable/ESBuild.ts index ed62997a..ee02b93a 100644 --- a/Source/Variable/ESBuild.ts +++ b/Source/Variable/ESBuild.ts @@ -20,7 +20,9 @@ export default { onStart(async () => { try { outdir - ? await (await import("fs/promises")).rm(outdir, { + ? await ( + await import("fs/promises") + ).rm(outdir, { recursive: true, }) : {};