diff --git a/Source/Function/Build.ts b/Source/Function/Build.ts index 44b0795e..89d087c5 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,9 +54,7 @@ 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 2b578faa..9bb1a75b 100644 --- a/Source/Function/File.ts +++ b/Source/Function/File.ts @@ -12,7 +12,9 @@ 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), ), ) @@ -28,9 +30,7 @@ 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,7 +43,9 @@ 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 ee02b93a..ed62997a 100644 --- a/Source/Variable/ESBuild.ts +++ b/Source/Variable/ESBuild.ts @@ -20,9 +20,7 @@ export default { onStart(async () => { try { outdir - ? await ( - await import("fs/promises") - ).rm(outdir, { + ? await (await import("fs/promises")).rm(outdir, { recursive: true, }) : {};