diff --git a/Documentation/Interface/Interface_Merge.Generic.html b/Documentation/Interface/Interface_Merge.Generic.html index 8853b8e5..d2c5961c 100644 --- a/Documentation/Interface/Interface_Merge.Generic.html +++ b/Documentation/Interface/Interface_Merge.Generic.html @@ -1,2 +1,2 @@ -Generic | typescript-esbuild - v0.3.6
interface Generic {
    DeepMergeArraysURI: "DeepMergeLeafURI";
}

Properties

Properties

DeepMergeArraysURI: "DeepMergeLeafURI"

Generated using TypeDoc

\ No newline at end of file +Generic | typescript-esbuild - v0.3.6
interface Generic {
    DeepMergeArraysURI: "DeepMergeLeafURI";
}

Properties

Properties

DeepMergeArraysURI: "DeepMergeLeafURI"

Generated using TypeDoc

\ No newline at end of file diff --git a/Source/Function/Exec.ts b/Source/Function/Exec.ts index cb884f2e..27464e8b 100644 --- a/Source/Function/Exec.ts +++ b/Source/Function/Exec.ts @@ -11,7 +11,9 @@ export default (async ( if (typeof Echo === "function") { stdout?.on("data", (Data) => Echo(Data)); } - } catch (_Error) {} + } catch (_Error) { + console.log(_Error); + } }) satisfies Type as Type; import type Type from "../Interface/Exec.js"; diff --git a/Source/Variable/ESBuild.ts b/Source/Variable/ESBuild.ts index defa4141..6e26743f 100644 --- a/Source/Variable/ESBuild.ts +++ b/Source/Variable/ESBuild.ts @@ -26,7 +26,9 @@ export default { }, ) : {}; - } catch (_Error) {} + } catch (_Error) { + console.log(_Error); + } }); }, }, diff --git a/Target/Function/Build.js b/Target/Function/Build.js index fb9465f4..9776d560 100644 --- a/Target/Function/Build.js +++ b/Target/Function/Build.js @@ -1 +1 @@ -var u=async(...[s,t])=>{for(const e of s)for(const l of await(await import("fast-glob")).default(e.replaceAll("'","").replaceAll('"',"")))o.push(l);o.reverse();const i=r((await import("../Variable/ESBuild.js")).default,{entryPoints:Object.fromEntries(o.map(e=>[e.replace("Source/","").split(".").slice(0,-1).join("."),e]))});console.log(await(await import("esbuild")).analyzeMetafile((await(await import("esbuild")).build(t?.ESBuild?r(i,await(await import("../Function/File.js")).default(t.ESBuild)):i))?.metafile??"",{verbose:!0})),a(`tsc -p ${t?.TypeScript??"tsconfig.json"}`),a(["typedoc","--commentStyle all","--gitRevision main",`--customCss ${n(`${p}/../Stylesheet/Theme.css`)}`,"--includeVersion","--out ./Documentation",`--plugin ${n(`${p}/../../Target/Variable/Load.js`)}`,"--plugin typedoc-plugin-remove-references","--plugin typedoc-plugin-rename-defaults","--plugin typedoc-plugin-mdn-links","--plugin typedoc-plugin-zod","--plugin typedoc-plugin-merge-modules","--plugin typedoc-plugin-keywords","--searchInComments",`--keywords ${(await(await import("../Function/JSON.js")).default("package.json",process.cwd()))?.keywords?.join(" --keywords ")??" typescript-esbuild "}`,"--theme TypeScriptESBuild","--entryPointStrategy expand","--mergeModulesRenameDefaults","--mergeModulesMergeMode module",`--entryPoints ${Object.values(i.entryPoints).join(" --entryPoints ")}`].join(" "))};const{default:a}=await import("../Function/Exec.js"),{default:r}=await import("../Function/Merge.js"),{resolve:n}=await import("path"),o=[],p=(await import("url")).fileURLToPath((await import("path")).dirname(import.meta.url));export{p as Current,a as Exec,r as Merge,o as Pipe,u as default,n as resolve}; +var u=async(...[s,t])=>{for(const e of s)for(const l of await(await import("fast-glob")).default(e.replaceAll("'","").replaceAll('"',"")))o.push(l);o.reverse();const i=r((await import("../Variable/ESBuild.js")).default,{entryPoints:Object.fromEntries(o.map(e=>[e.replace("Source/","").split(".").slice(0,-1).join("."),e]))});console.log(await(await import("esbuild")).analyzeMetafile((await(await import("esbuild")).build(t?.ESBuild?r(i,await(await import("../Function/File.js")).default(t.ESBuild)):i))?.metafile??"",{verbose:!0})),a(`tsc -p ${t?.TypeScript??"tsconfig.json"}`),a(["typedoc","--commentStyle all","--gitRevision main",`--customCss ${n(`${p}/../Stylesheet/Theme.css`)}`,"--includeVersion","--out ./Documentation",`--plugin ${n(`${p}/../../Target/Variable/Load.js`)}`,"--plugin typedoc-plugin-remove-references","--plugin typedoc-plugin-rename-defaults","--plugin typedoc-plugin-mdn-links","--plugin typedoc-plugin-zod","--plugin typedoc-plugin-merge-modules","--plugin typedoc-plugin-keywords","--searchInComments",`--keywords ${(await(await import("../Function/JSON.js")).default("package.json",process.cwd()))?.keywords?.join(" --keywords ")??" typescript-esbuild "}`,"--theme TypeScriptESBuild","--entryPointStrategy expand","--mergeModulesRenameDefaults","--mergeModulesMergeMode module",`--entryPoints ${Object.values(i.entryPoints).join(" --entryPoints ")}`].join(" "))};const{default:a}=await import("../Function/Exec.js"),{default:r}=await import("../Function/Merge.js"),{resolve:n}=await import("node:path"),o=[],p=(await import("node:url")).fileURLToPath((await import("node:path")).dirname(import.meta.url));export{p as Current,a as Exec,r as Merge,o as Pipe,u as default,n as resolve}; diff --git a/Target/Function/Exec.js b/Target/Function/Exec.js index a17dba8f..542fadd7 100644 --- a/Target/Function/Exec.js +++ b/Target/Function/Exec.js @@ -1 +1 @@ -var r=async(...[a,t=e=>console.log(e)])=>{try{const{stdout:e}=(await import("child_process")).exec(a);typeof t=="function"&&e?.on("data",o=>t(o))}catch{}};export{r as default}; +var r=async(...[o,t=e=>console.log(e)])=>{try{const{stdout:e}=(await import("node:child_process")).exec(o);typeof t=="function"&&e?.on("data",a=>t(a))}catch(e){console.log(e)}};export{r as default}; diff --git a/Target/Function/File.js b/Target/Function/File.js index adadfc90..c8bd066a 100644 --- a/Target/Function/File.js +++ b/Target/Function/File.js @@ -1 +1 @@ -var a=async(...[t])=>{if(t.split(".").pop()==="ts"){const{options:i}=(await import("typescript")).default.convertCompilerOptionsFromJson((await(await import("./JSON.js")).default("../Notation/TypeScript.json",(await import("path")).dirname((await import("url")).fileURLToPath(import.meta.url))))?.compilerOptions,".");(await import("typescript")).default.createProgram([t],i,(await import("typescript")).default.createCompilerHost(i)).emit(),await(await import("fs/promises")).writeFile(t.replace(".ts",".js"),(await import("typescript")).default.transpile((await(await import("fs/promises")).readFile(t,"utf-8")).toString(),i))}return(await import((await import("url")).pathToFileURL(t).toString().replace(".ts",".js"))).default};export{a as default}; +var a=async(...[t])=>{if(t.split(".").pop()==="ts"){const{options:i}=(await import("typescript")).default.convertCompilerOptionsFromJson((await(await import("./JSON.js")).default("../Notation/TypeScript.json",(await import("node:path")).dirname((await import("node:url")).fileURLToPath(import.meta.url))))?.compilerOptions,".");(await import("typescript")).default.createProgram([t],i,(await import("typescript")).default.createCompilerHost(i)).emit(),await(await import("node:fs/promises")).writeFile(t.replace(".ts",".js"),(await import("typescript")).default.transpile((await(await import("node:fs/promises")).readFile(t,"utf-8")).toString(),i))}return(await import((await import("node:url")).pathToFileURL(t).toString().replace(".ts",".js"))).default};export{a as default}; diff --git a/Target/Function/JSON.js b/Target/Function/JSON.js index 3c599059..c7483a85 100644 --- a/Target/Function/JSON.js +++ b/Target/Function/JSON.js @@ -1 +1 @@ -var t=async(...[e,a])=>JSON.parse((await(await import("fs/promises")).readFile(`${a??"."}/${e}`,"utf-8")).toString());export{t as default}; +var t=async(...[e,a])=>JSON.parse((await(await import("node:fs/promises")).readFile(`${a??"."}/${e}`,"utf-8")).toString());export{t as default}; diff --git a/Target/Variable/ESBuild.js b/Target/Variable/ESBuild.js index fe0658bd..f1f8a059 100644 --- a/Target/Variable/ESBuild.js +++ b/Target/Variable/ESBuild.js @@ -1 +1 @@ -var r={color:!0,format:"esm",metafile:!0,minify:!0,outdir:"Target",platform:"node",target:"esnext",write:!0,logLevel:"debug",plugins:[{name:"Target",setup({onStart:e,initialOptions:{outdir:t}}){e(async()=>{try{t&&await(await import("fs/promises")).rm(t,{recursive:!0})}catch{}})}},(await import("esbuild-plugin-copy")).copy({resolveFrom:"out",assets:[{from:"./Source/Notation/TypeScript.json",to:"./Notation/"},{from:"./Source/Stylesheet/Theme.css",to:"./Stylesheet/"}]})],define:{"process.env.VERSION_PACKAGE":`'${(await(await import("../Function/JSON.js")).default("package.json"))?.version}'`}};export{r as default}; +var r={color:!0,format:"esm",metafile:!0,minify:!0,outdir:"Target",platform:"node",target:"esnext",write:!0,logLevel:"debug",plugins:[{name:"Target",setup({onStart:t,initialOptions:{outdir:e}}){t(async()=>{try{e&&await(await import("node:fs/promises")).rm(e,{recursive:!0})}catch(o){console.log(o)}})}},(await import("esbuild-plugin-copy")).copy({resolveFrom:"out",assets:[{from:"./Source/Notation/TypeScript.json",to:"./Notation/"},{from:"./Source/Stylesheet/Theme.css",to:"./Stylesheet/"}]})],define:{"process.env.VERSION_PACKAGE":`'${(await(await import("../Function/JSON.js")).default("package.json"))?.version}'`}};export{r as default};