diff --git a/Documentation/assets/custom.css b/Documentation/assets/custom.css
new file mode 100644
index 00000000..6574082f
--- /dev/null
+++ b/Documentation/assets/custom.css
@@ -0,0 +1,13 @@
+:root {
+ --color-background: #000;
+}
+
+.tsd-navigation.settings {
+ display: none !important;
+}
+
+#tsd-search .field label {
+ left: 50%;
+ margin-left: -20px;
+ z-index: 1;
+}
diff --git a/Documentation/assets/navigation.js b/Documentation/assets/navigation.js
index 3c5cb663..2ef273e4 100644
--- a/Documentation/assets/navigation.js
+++ b/Documentation/assets/navigation.js
@@ -1 +1 @@
-window.navigationData = "data:application/octet-stream;base64,H4sIAAAAAAAACq2Tuw6CMBhG36UzkQSNA6OJDg464EYIgfIj1XJJbQ3G+O5CVRSxKMhaTk9PvgT7jDjkHJnISgXDoC9EgjlJE30mCA2QhjKPR8XnOA0EhYN+w9wH5kpsFPGYFuyeJAEyDQ3hqDhlkCDTrh6Y54CfvvAuUBlLuq6dTi5aJQsAshjYFn43VldataEnKO8ilRcaSudF+r5sfQjVsM0BFLt2aJbOPskLQuF7ckkNnSydfZKX1nr1Pbmkhk6Wzg7Ja38HmOtzq/2Xu2HuHesXffQY8Xy19GP12KhVb04ZWJiRjCuLG8i/tU2hutS5Al9XDeTUBAAA"
\ No newline at end of file
+window.navigationData = "data:application/octet-stream;base64,H4sIAAAAAAAACqWTvQ6CMBRG36UzkcS/gdFEBwcdcDPG1HKRaqmkXozG+O5SRBRLCZGR+93v5LQp6ztBuCLxyCTlIiAOSShG2Wd8ClIBZzcf9yKMRZYduQyI13cIi7KpAkm8dQlY3RL49LlEUCFlJULHP5zR+OGU9ekV2KceppIhP8l3W6fV9nj4VQ4AkhjUHuyEcqURE9JUYBMkXzAQG+tB3vdoHsByjQ0OOaONwowLMBX0tKtCzmilUFTcub9c1LgU8VbHnaUqsDZ2y90BGLpT3/LqX/m2yP/zu1DF6a6GVis46FcE9d/iM8UTtDoaK101TaDddPMEKqjHkzkEAAA="
\ No newline at end of file
diff --git a/Documentation/assets/search.js b/Documentation/assets/search.js
index dd68acdb..3dc02747 100644
--- a/Documentation/assets/search.js
+++ b/Documentation/assets/search.js
@@ -1 +1 @@
-window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAACq2Wy26jMBSG38VrBOFOsqzUSjOL6SKj2SAUEXBmaLmJS6cjxLvPsQ0xDjihbVaW49+fz3+OfUKHquJvjXZ+h16TPEY7Q0F5mGG0Q/uirSKsPR9fcNRoj/uHNkljpKC2SmE1K+I2xbXGVAemOgwq9U+TpSCN0rCuMeAR6pXxBJMfEeNT2KbNGfoWVkl4lGMH/QJeQWVY4byRxs3Pnzl8avOoSYpc+75//iEzOIoORHTVn2NJ/Z0GiIT6EXti0GvcPSUpvumOiO7vjlI/5Y4Gvcbd4zuObrojovu7o9RPuaNBr3F39e2dA7n99ib+hITJzTGmJHFXrF2+OiGzuMxw9RuvPv68444xrK3uxzuP9Hxe35//SryPqqRsZH11pvh6T50jV7max9oHCoJj8TvadegNVzWYBaGhmuoWdp4SnMbkP4WFBNwiywgrGNZ+QWMuKqJgEm2DFH+jGKa6MZwgUPxxB12gP1CZDjNd8VTTMQSVLqgMmBlLMEOQmRKYKagsmJlLMEuQ2RKYLagcmFlLMEeQuRKYK6g8mNlLME+QQUF8Z0m2FVNLMu0u6fSLGkiLIFZBJ9n2FoFiHXRZIXRWCXrX4JI1OP7G7hzcmkkL6dBhuIvu+AY6BEHvur7nV4/MCPz8Ovg2fbKN6BRkssFmg8sGfVjUTQka04bKuQ7nbiVbatYwxuajHVkr4AybM7yVjMswLI5wViJO9EuBI0yOsFYiXmpoCROEwRHGdUTBvttwPUvGhjNk5W2gV9W0Vy3s9yaFXgwCrlqZlDhNchD5Qd//B323hX0eCwAA";
\ No newline at end of file
+window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAACq1Wy46bMBT9F68tgs0zWVaaSu2is0jVTRRFBJyWKS8BmU4V8e+9tgnGwZ5mNLOJZe455x6OH+GC2vpPhza7C/qdVxnaUIyqpGRog77/bdg2bfOmf9h+OudFhjA6twVUyjo7F6xbLRDOr74sAJYWSdcxkEVowFdlT0ln7JSci34SfE7aPDmaJUesQRqjJmlZ1Ru9qr40CLV3mrrmVc/aU5JCW9mKV1/vs9CelB+PTyztV7aoZPnwYTnd6N0V0o1F01uYzf/fc+hPEg8vLJ0UTucq7fO6umrw4tsSnilnjDUla38yq/yEeEcPPfFlhzuCtuerhXON1xLKG/0JlbvsCRMmd5/zgi3c8YfvdydU7nInTBjdjWKrr9vHb0ubY/XAqx/gV5O7z7jmb9hjuGAy9oI2F/TM2g4qAKKO56yBdcpZkfF7V1oBzbosuc5+rP2Ao1q3HCEhKxfhnYup54QR2e/x7soQBfFAwAjMCF47rhtrKKKhKMyoSYxqMA9mngnmaTDf0tPXUAHMfJNYoMFCmAWYxE4Qehos1GARzEKTWqTBYou1WEOtbT3XerauLdybNeBhRyZzRF8GQm2C+joQnndsFNRXgtiWgsi1EJsSdmPPsi9yc8L2OspL/4IO44adDsgFBfAzDGp78hnXnd3FihcqXmTljSdOsYhiEY7DyJdDLAcIV450HH2LNhOXqxIOlHAoqWsL8yQuPsWMZpaIjXM97k8dnOwZOZ6RPQu5ln/FrFtk7ym2jdyLjxhFoYpCX6F04vvI0NJVfNfEh03T5A0r8gowu/0w/ANin2BONQoAAA==";
\ No newline at end of file
diff --git a/Documentation/functions/Source_Function_Build.Exec.html b/Documentation/functions/Build.Exec.html
similarity index 82%
rename from Documentation/functions/Source_Function_Build.Exec.html
rename to Documentation/functions/Build.Exec.html
index b62f014e..49c225d2 100644
--- a/Documentation/functions/Source_Function_Build.Exec.html
+++ b/Documentation/functions/Build.Exec.html
@@ -1,4 +1,4 @@
-
Exec | typescript-esbuild - v0.1.16
+Exec | typescript-esbuild - v0.1.16
Exec ( Command , Echo ? ) : Promise < void >
-
Parameters
-Command : string
-
-
+Command : string
Echo : false | ( ( Return ) => void ) = ...
-
-
+Defined in Application/NikolaRHristov/NPM/TypeScriptESBuild/Source/Function/Exec.ts:12
-
-Source/ Function/ File
+
+File
+
+
+default
-
-Source/ Function/JSON
+
+Function/JSON
-
-Source/ Object/ESBuild
+
+Object/ESBuild
diff --git a/Documentation/functions/Source_Function_Build.deepmerge.html b/Documentation/functions/Build.deepmerge.html
similarity index 85%
rename from Documentation/functions/Source_Function_Build.deepmerge.html
rename to Documentation/functions/Build.deepmerge.html
index 3d943563..8e8b9859 100644
--- a/Documentation/functions/Source_Function_Build.deepmerge.html
+++ b/Documentation/functions/Build.deepmerge.html
@@ -1,4 +1,4 @@
-deepmerge | typescript-esbuild - v0.1.16
+deepmerge | typescript-esbuild - v0.1.16
-
-Source/ Function/ Exec
+
+Exec
+
+
+default
-
-Source/ Function/ File
+
+File
+
+
+default
-
-Source/ Function/JSON
+
+Function/JSON
-
-Source/ Object/ESBuild
+
+Object/ESBuild
diff --git a/Documentation/functions/Source_Function_Build.default.html b/Documentation/functions/Build.default.html
similarity index 80%
rename from Documentation/functions/Source_Function_Build.default.html
rename to Documentation/functions/Build.default.html
index e2bd0043..27d85299 100644
--- a/Documentation/functions/Source_Function_Build.default.html
+++ b/Documentation/functions/Build.default.html
@@ -1,4 +1,4 @@
-default | typescript-esbuild - v0.1.16
+default | typescript-esbuild - v0.1.16
-
-Source/ Function/ File
+
+File
+
+
+default
-
-Source/ Function/JSON
+
+Function/JSON
-
-Source/ Object/ESBuild
+
+Object/ESBuild
diff --git a/Documentation/functions/Source_Function_Exec.default.html b/Documentation/functions/Exec.default.html
similarity index 82%
rename from Documentation/functions/Source_Function_Exec.default.html
rename to Documentation/functions/Exec.default.html
index 77d6e208..f2a31f0d 100644
--- a/Documentation/functions/Source_Function_Exec.default.html
+++ b/Documentation/functions/Exec.default.html
@@ -1,4 +1,4 @@
-default | typescript-esbuild - v0.1.16
+default | typescript-esbuild - v0.1.16
-
-Source/ Function/ File
+
+File
+
+
+default
-
-Source/ Function/JSON
+
+Function/JSON
-
-Source/ Object/ESBuild
+
+Object/ESBuild
diff --git a/Documentation/functions/Source_Function_File.default.html b/Documentation/functions/File.default.html
similarity index 81%
rename from Documentation/functions/Source_Function_File.default.html
rename to Documentation/functions/File.default.html
index 6f0c1552..98365869 100644
--- a/Documentation/functions/Source_Function_File.default.html
+++ b/Documentation/functions/File.default.html
@@ -1,4 +1,4 @@
-default | typescript-esbuild - v0.1.16
+default | typescript-esbuild - v0.1.16
+Defined in Application/NikolaRHristov/NPM/TypeScriptESBuild/Source/Function/File.ts:13
-
-Source/ Function/ File
+
+File
+
+
+default
-
-Source/ Function/JSON
+
+Function/JSON
-
-Source/ Object/ESBuild
+
+Object/ESBuild
diff --git a/Documentation/functions/Source_Function_JSON.default.html b/Documentation/functions/Function_JSON.default.html
similarity index 84%
rename from Documentation/functions/Source_Function_JSON.default.html
rename to Documentation/functions/Function_JSON.default.html
index 24022d88..d2576218 100644
--- a/Documentation/functions/Source_Function_JSON.default.html
+++ b/Documentation/functions/Function_JSON.default.html
@@ -1,4 +1,4 @@
-default | typescript-esbuild - v0.1.16
+default | typescript-esbuild - v0.1.16
-
-Source/ Function/ File
+
+File
+
+
+default
-
-Source/ Function/JSON
+
+Function/JSON
-
-Source/ Object/ESBuild
+
+Object/ESBuild
diff --git a/Documentation/index.html b/Documentation/index.html
index 5c4592a8..5840b16c 100644
--- a/Documentation/index.html
+++ b/Documentation/index.html
@@ -1,4 +1,4 @@
-typescript-esbuild - v0.1.16
+typescript-esbuild - v0.1.16
-
-Source/ Function/ File
+
+File
+
+
+default
-
-Source/ Function/JSON
+
+Function/JSON
-
-Source/ Object/ESBuild
+
+Object/ESBuild
diff --git a/Documentation/interfaces/Build.Type.html b/Documentation/interfaces/Build.Type.html
new file mode 100644
index 00000000..78860072
--- /dev/null
+++ b/Documentation/interfaces/Build.Type.html
@@ -0,0 +1,121 @@
+Type | typescript-esbuild - v0.1.16
+
+
+
+
+
+
+Type ( File , Option ? ) : Promise < void >
+
+
+
Parameters
+
+
+File : string []
+
+
+
+Optional
Option : { ESBuild ?: string ; TypeScript ?: string ; }
+
+
+
+Optional
ESBuild ?: string
+
+Optional
Type Script ?: string
+
+
+
+
\ No newline at end of file
diff --git a/Documentation/modules/Source_Function_Build.html b/Documentation/modules/Build.html
similarity index 79%
rename from Documentation/modules/Source_Function_Build.html
rename to Documentation/modules/Build.html
index fc0ad549..206a78b0 100644
--- a/Documentation/modules/Source_Function_Build.html
+++ b/Documentation/modules/Build.html
@@ -1,4 +1,4 @@
-Source/Function/Build | typescript-esbuild - v0.1.16
+Build | typescript-esbuild - v0.1.16
-
-Source/ Function/ Exec
+
+Exec
+
+
+default
-
-Source/ Function/ File
+
+File
+
+
+default
-
-Source/ Function/JSON
+
+Function/JSON
-
-Source/ Object/ESBuild
+
+Object/ESBuild
diff --git a/Documentation/modules/Source_Function_Exec.html b/Documentation/modules/Exec.html
similarity index 80%
rename from Documentation/modules/Source_Function_Exec.html
rename to Documentation/modules/Exec.html
index f70b85a2..ee845e91 100644
--- a/Documentation/modules/Source_Function_Exec.html
+++ b/Documentation/modules/Exec.html
@@ -1,4 +1,4 @@
-Source/Function/Exec | typescript-esbuild - v0.1.16
+Exec | typescript-esbuild - v0.1.16
-
-Source/ Function/ Exec
+
+Exec
+
+
+default
-
-Source/ Function/ File
+
+File
+
+
+default
-
-Source/ Function/JSON
+
+Function/JSON
-
-Source/ Object/ESBuild
+
+Object/ESBuild
diff --git a/Documentation/modules/Source_Function_File.html b/Documentation/modules/File.html
similarity index 80%
rename from Documentation/modules/Source_Function_File.html
rename to Documentation/modules/File.html
index a7b1bc2f..1db53a16 100644
--- a/Documentation/modules/Source_Function_File.html
+++ b/Documentation/modules/File.html
@@ -1,4 +1,4 @@
-Source/Function/File | typescript-esbuild - v0.1.16
+File | typescript-esbuild - v0.1.16
-
-Source/ Function/ Exec
+
+Exec
+
+
+default
-
-Source/ Function/ File
+
+File
+
+
+default
-
-Source/ Function/JSON
+
+Function/JSON
-
-Source/ Object/ESBuild
+
+Object/ESBuild
diff --git a/Documentation/modules/Source_Function_JSON.html b/Documentation/modules/Function_JSON.html
similarity index 81%
rename from Documentation/modules/Source_Function_JSON.html
rename to Documentation/modules/Function_JSON.html
index 64f9ad65..5843c6eb 100644
--- a/Documentation/modules/Source_Function_JSON.html
+++ b/Documentation/modules/Function_JSON.html
@@ -1,4 +1,4 @@
-Source/Function/JSON | typescript-esbuild - v0.1.16
+Function/JSON | typescript-esbuild - v0.1.16
-
-Source/ Function/ Exec
+
+Exec
+
+
+default
-
-Source/ Function/ File
+
+File
+
+
+default
-
-Source/ Function/JSON
+
+Function/JSON
-
-Source/ Object/ESBuild
+
+Object/ESBuild
diff --git a/Documentation/modules/Source_Object_ESBuild.html b/Documentation/modules/Object_ESBuild.html
similarity index 81%
rename from Documentation/modules/Source_Object_ESBuild.html
rename to Documentation/modules/Object_ESBuild.html
index f4135d01..f9b16b39 100644
--- a/Documentation/modules/Source_Object_ESBuild.html
+++ b/Documentation/modules/Object_ESBuild.html
@@ -1,4 +1,4 @@
-Source/Object/ESBuild | typescript-esbuild - v0.1.16
+Object/ESBuild | typescript-esbuild - v0.1.16
-
-Source/ Function/ Exec
+
+Exec
+
+
+default
-
-Source/ Function/ File
+
+File
+
+
+default
-
-Source/ Function/JSON
+
+Function/JSON
-
-Source/ Object/ESBuild
+
+Object/ESBuild
diff --git a/Documentation/modules/TypeScriptESBuild.html b/Documentation/modules/TypeScriptESBuild.html
index 34d39ba7..489e68f8 100644
--- a/Documentation/modules/TypeScriptESBuild.html
+++ b/Documentation/modules/TypeScriptESBuild.html
@@ -1,4 +1,4 @@
-TypeScriptESBuild | typescript-esbuild - v0.1.16
+TypeScriptESBuild | typescript-esbuild - v0.1.16
-
-Source/ Function/ Exec
+
+Exec
+
+
+default
-
-Source/ Function/ File
+
+File
+
+
+default
-
-Source/ Function/JSON
+
+Function/JSON
-
-Source/ Object/ESBuild
+
+Object/ESBuild
diff --git a/Documentation/variables/Source_Object_ESBuild.default.html b/Documentation/variables/Object_ESBuild.default.html
similarity index 83%
rename from Documentation/variables/Source_Object_ESBuild.default.html
rename to Documentation/variables/Object_ESBuild.default.html
index a8c22ffe..0683d3b1 100644
--- a/Documentation/variables/Source_Object_ESBuild.default.html
+++ b/Documentation/variables/Object_ESBuild.default.html
@@ -1,4 +1,4 @@
-default | typescript-esbuild - v0.1.16
+default | typescript-esbuild - v0.1.16
-
-Source/ Function/ Exec
+
+Exec
+
+
+default
-
-Source/ Function/ File
+
+File
+
+
+default
-
-Source/ Function/JSON
+
+Function/JSON
-
-Source/ Object/ESBuild
+
+Object/ESBuild
diff --git a/Documentation/variables/TypeScriptESBuild.default.html b/Documentation/variables/TypeScriptESBuild.default.html
index c3773ce1..03262867 100644
--- a/Documentation/variables/TypeScriptESBuild.default.html
+++ b/Documentation/variables/TypeScriptESBuild.default.html
@@ -1,4 +1,4 @@
-default | typescript-esbuild - v0.1.16
+default | typescript-esbuild - v0.1.16
-
-Source/ Function/ Exec
+
+Exec
+
+
+default
-
-Source/ Function/ File
+
+File
+
+
+default
-
-Source/ Function/JSON
+
+Function/JSON
-
-Source/ Object/ESBuild
+
+Object/ESBuild
diff --git a/Source/Function/Build.ts b/Source/Function/Build.ts
index ef9b7756..11805a14 100644
--- a/Source/Function/Build.ts
+++ b/Source/Function/Build.ts
@@ -1,19 +1,19 @@
/**
- * The `Build` function compiles and builds TypeScript files using esbuild and TypeScript compiler.
+ * The `Build` function compiles and builds TypeScript files using esbuild and the TypeScript compiler.
*
* @module Build
*
*/
-export default (async (...[Files, Option]: Parameters) => {
+export default (async (...[File, Option]: Parameters) => {
const Pipe: string[] = [];
- for (const File of Files) {
- for (const _File of await (
- await import("fast-glob")
- ).default(File.replaceAll("'", "").replaceAll('"', ""))) {
- Pipe.push(_File);
- }
- }
+ File.forEach(async (File) =>
+ (
+ await (
+ await import("fast-glob")
+ ).default(File.replaceAll("'", "").replaceAll('"', ""))
+ ).forEach((File) => Pipe.push(File))
+ );
Pipe.reverse();
@@ -63,6 +63,7 @@ export default (async (...[Files, Option]: Parameters) => {
Exec(
`typedoc \
+ --customCss ./Source/Sheet/TypeDoc.css \
--includeVersion \
--out ./Documentation \
--plugin typedoc-plugin-mdn-links \
@@ -70,7 +71,7 @@ export default (async (...[Files, Option]: Parameters) => {
--plugin @mxssfd/typedoc-theme \
--plugin typedoc-plugin-merge-modules \
--theme my-theme \
- --entryPointStrategy expand ./Target \
+ --entryPointStrategy expand \
--mergeModulesRenameDefaults \
--mergeModulesMergeMode module \
--entryPoints ${Object.values(Configuration.entryPoints).join(
diff --git a/Source/Interface/Build.ts b/Source/Interface/Build.ts
index ad9191ed..82c4418d 100644
--- a/Source/Interface/Build.ts
+++ b/Source/Interface/Build.ts
@@ -1,15 +1,18 @@
/**
* @module Build
*
- * @param {Pattern[]} Files - An array of file patterns to be processed. Each pattern can include
- * wildcards (*) to match multiple files.
- *
- * @param [Option] - The `Option` parameter is an optional object that can contain two properties:
- *
*/
export default interface Type {
(
- Files: Pattern[],
+ /**
+ * An array of file patterns to be processed. Each pattern can include
+ * wildcards (*) to match multiple files.
+ */
+ File: Pattern[],
+
+ /**
+ *
+ */
Option?: {
ESBuild?: string;
TypeScript?: string;
diff --git a/Source/Sheet/TypeDoc.css b/Source/Sheet/TypeDoc.css
new file mode 100644
index 00000000..6574082f
--- /dev/null
+++ b/Source/Sheet/TypeDoc.css
@@ -0,0 +1,13 @@
+:root {
+ --color-background: #000;
+}
+
+.tsd-navigation.settings {
+ display: none !important;
+}
+
+#tsd-search .field label {
+ left: 50%;
+ margin-left: -20px;
+ z-index: 1;
+}
diff --git a/Target/Function/Build.d.ts b/Target/Function/Build.d.ts
index da128d96..d38917fe 100644
--- a/Target/Function/Build.d.ts
+++ b/Target/Function/Build.d.ts
@@ -1,14 +1,11 @@
-import type { Pattern } from "fast-glob";
-export declare const Exec: (Command: string, Echo?: false | ((Return: any) => void)) => Promise;
-export declare const deepmerge: typeof import("deepmerge-ts").deepmerge;
/**
- * The `Build` function compiles and builds TypeScript files using esbuild and TypeScript compiler.
- * @param {Pattern[]} Files - An array of file patterns to be processed. Each pattern can include
- * wildcards (*) to match multiple files.
- * @param [Option] - The `Option` parameter is an optional object that can contain two properties:
+ * The `Build` function compiles and builds TypeScript files using esbuild and the TypeScript compiler.
+ *
+ * @module Build
+ *
*/
-declare const _default: (Files: Pattern[], Option?: {
- ESBuild?: string;
- TypeScript?: string;
-}) => Promise;
+declare const _default: Type;
export default _default;
+import type Type from "../Interface/Build.js";
+export declare const Exec: (Command: string, Echo?: false | ((Return: any) => void)) => Promise;
+export declare const deepmerge: typeof import("deepmerge-ts").deepmerge;
diff --git a/Target/Function/Build.js b/Target/Function/Build.js
index 24f74591..c8e92d92 100644
--- a/Target/Function/Build.js
+++ b/Target/Function/Build.js
@@ -1 +1 @@
-const{default:a}=await import("../Function/Exec.js"),{deepmerge:l}=await import("deepmerge-ts");var s=async(n,e)=>{const i=[];for(const t of n)for(const p of await(await import("fast-glob")).default(t.replaceAll("'","").replaceAll('"',"")))i.push(p);i.reverse();const o=l((await import("../Object/ESBuild.js")).default,{entryPoints:Object.fromEntries(i.map(t=>[t.replace("Source/","").split(".").slice(0,-1).join("."),t]))}),r=await(await import("esbuild")).build(e?.ESBuild?l(o,await(await import("../Function/File.js")).default(e?.ESBuild)):o);console.log(r.metafile?await(await import("esbuild")).analyzeMetafile(r.metafile,{verbose:!0}):{}),e?.TypeScript?a(`tsc -p ${e?.TypeScript}`):a("tsc"),a(`typedoc --includeVersion --out ./Documentation --plugin typedoc-plugin-mdn-links --plugin typedoc-plugin-zod --plugin @mxssfd/typedoc-theme --plugin typedoc-plugin-merge-modules --theme my-theme --entryPointStrategy expand ./Target --mergeModulesRenameDefaults --mergeModulesMergeMode module --entryPoints ${Object.values(o.entryPoints).join(" --entryPoints ")}`)};export{a as Exec,l as deepmerge,s as default};
+var n=async(...[p,e])=>{const i=[];p.forEach(async t=>(await(await import("fast-glob")).default(t.replaceAll("'","").replaceAll('"',""))).forEach(l=>i.push(l))),i.reverse();const a=r((await import("../Object/ESBuild.js")).default,{entryPoints:Object.fromEntries(i.map(t=>[t.replace("Source/","").split(".").slice(0,-1).join("."),t]))}),s=await(await import("esbuild")).build(e?.ESBuild?r(a,await(await import("../Function/File.js")).default(e?.ESBuild)):a);console.log(s.metafile?await(await import("esbuild")).analyzeMetafile(s.metafile,{verbose:!0}):{}),e?.TypeScript?o(`tsc -p ${e?.TypeScript}`):o("tsc"),o(`typedoc --customCss ./Source/Sheet/TypeDoc.css --includeVersion --out ./Documentation --plugin typedoc-plugin-mdn-links --plugin typedoc-plugin-zod --plugin @mxssfd/typedoc-theme --plugin typedoc-plugin-merge-modules --theme my-theme --entryPointStrategy expand --mergeModulesRenameDefaults --mergeModulesMergeMode module --entryPoints ${Object.values(a.entryPoints).join(" --entryPoints ")}`)};const{default:o}=await import("../Function/Exec.js"),{deepmerge:r}=await import("deepmerge-ts");export{o as Exec,r as deepmerge,n as default};
diff --git a/Target/Function/Exec.d.ts b/Target/Function/Exec.d.ts
index ddb1c7c7..50e76e96 100644
--- a/Target/Function/Exec.d.ts
+++ b/Target/Function/Exec.d.ts
@@ -1,9 +1,13 @@
/**
* The function 'Exec' is an asynchronous function that executes a command and logs the
* stdout of the child process.
+ *
+ * @module Exec
+ *
* @param {string} Command - The `Command` parameter is a string that represents the
* command you want to execute. It can be any valid command that can be executed in a
* terminal or command prompt.
+ *
*/
declare const _default: (Command: string, Echo?: false | ((Return: any) => void)) => Promise;
export default _default;
diff --git a/Target/Function/File.d.ts b/Target/Function/File.d.ts
index 5614969b..dc59edc0 100644
--- a/Target/Function/File.d.ts
+++ b/Target/Function/File.d.ts
@@ -1,9 +1,14 @@
/**
* The function takes a file path as input, checks if it is a TypeScript file, converts the TypeScript
* code to JavaScript, and then imports and returns the default export of the JavaScript file.
+ *
+ * @module File
+ *
* @param {string} Path - The `Path` parameter is a string that represents the file path of the file
* you want to process.
+ *
* @returns the default export of the module that is imported using the provided `Path`.
+ *
*/
declare const _default: (Path: string) => Promise;
export default _default;
diff --git a/Target/Interface/Build.d.ts b/Target/Interface/Build.d.ts
new file mode 100644
index 00000000..23090445
--- /dev/null
+++ b/Target/Interface/Build.d.ts
@@ -0,0 +1,20 @@
+/**
+ * @module Build
+ *
+ */
+export default interface Type {
+ (
+ /**
+ * An array of file patterns to be processed. Each pattern can include
+ * wildcards (*) to match multiple files.
+ */
+ File: Pattern[],
+ /**
+ *
+ */
+ Option?: {
+ ESBuild?: string;
+ TypeScript?: string;
+ }): Promise;
+}
+import type { Pattern } from "fast-glob";
diff --git a/Target/Interface/Build.js b/Target/Interface/Build.js
new file mode 100644
index 00000000..e69de29b
diff --git a/package.json b/package.json
index 996f8266..1adf2531 100644
--- a/package.json
+++ b/package.json
@@ -23,6 +23,8 @@
"url": "https://nikolahristov.tech"
},
"type": "module",
+ "main": "./Target/Class/TypeScriptESBuild.js",
+ "types": "./Target/Class/TypeScriptESBuild.d.ts",
"bin": {
"TypeScriptESBuild": "Target/Class/TypeScriptESBuild.js"
},
The function 'Exec' is an asynchronous function that executes a command and logs the -stdout of the child process.
-