diff --git a/Configuration/ESBuild.js b/Configuration/ESBuild.js index 57a87b6..42e70ec 100644 --- a/Configuration/ESBuild.js +++ b/Configuration/ESBuild.js @@ -1,40 +1,49 @@ export default { - color: true, - format: "esm", - metafile: true, - minify: true, - outdir: "Target", - platform: "node", - target: "esnext", - write: true, - logLevel: "debug", - plugins: [ - { - name: "Target", - setup({ onStart, initialOptions: { outdir } }) { - onStart(async () => { - try { - outdir - ? await (await import("fs/promises")).rm(outdir, { - recursive: true, - }) - : {}; - } - catch (_Error) { } - }); - }, - }, - (await import("esbuild-plugin-copy")).copy({ - resolveFrom: "out", - assets: [ - { - from: "./Source/Notation/biome.json", - to: "./Notation/", - }, - ], - }), - ], - define: { - "process.env.VERSION_PACKAGE": `'${(await (await import("typescript-esbuild/Target/Function/JSON.js")).default("package.json"))?.version}'`, - }, + color: true, + format: "esm", + metafile: true, + minify: true, + outdir: "Target", + platform: "node", + target: "esnext", + write: true, + logLevel: "debug", + plugins: [ + { + name: "Target", + setup({ onStart, initialOptions: { outdir } }) { + onStart(async () => { + try { + outdir + ? await ( + await import("fs/promises") + ).rm(outdir, { + recursive: true, + }) + : {}; + } catch (_Error) { + console.log(_Error); + } + }); + }, + }, + (await import("esbuild-plugin-copy")).copy({ + resolveFrom: "out", + assets: [ + { + from: "./Source/Notation/biome.json", + to: "./Notation/", + }, + ], + }), + ], + define: { + "process.env.VERSION_PACKAGE": `'${ + ( + await ( + await import("typescript-esbuild/Target/Function/JSON.js") + ).default("package.json") + )?.version + }'`, + }, }; diff --git a/Configuration/ESBuild.ts b/Configuration/ESBuild.ts index 170d4b6..4123b09 100644 --- a/Configuration/ESBuild.ts +++ b/Configuration/ESBuild.ts @@ -23,7 +23,9 @@ export default { recursive: true, }) : {}; - } catch (_Error) {} + } catch (_Error) { + console.log(_Error); + } }); }, }, diff --git a/Source/Function/Integration.ts b/Source/Function/Integration.ts index 9d73872..f41e12c 100644 --- a/Source/Function/Integration.ts +++ b/Source/Function/Integration.ts @@ -63,7 +63,7 @@ export default (_Option: Option = {}): AstroIntegration => { _Biome.applyConfiguration(Biome); } - Paths.forEach(async (Path) => { + for (const Path of Paths) { await ( await ( await ( @@ -74,7 +74,7 @@ export default (_Option: Option = {}): AstroIntegration => { ).By("**/*.{js,mjs,cjs,ts}") ).Not(Exclude) ).Pipe(_Action); - }); + } }, }, };