From c0ba0426df6024fae402c95a185dc60a61179562 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Sat, 21 Oct 2023 23:54:40 +0300 Subject: [PATCH] squash! --- Configuration/ESBuild.js | 87 ++++++++++++++++++---------------------- 1 file changed, 40 insertions(+), 47 deletions(-) diff --git a/Configuration/ESBuild.js b/Configuration/ESBuild.js index 42e70ec..6202eb7 100644 --- a/Configuration/ESBuild.js +++ b/Configuration/ESBuild.js @@ -1,49 +1,42 @@ 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) { - 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 - }'`, - }, + 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}'`, + }, };