diff --git a/Source/Function/Build.ts b/Source/Function/Build.ts index 0af8b548..c01486db 100644 --- a/Source/Function/Build.ts +++ b/Source/Function/Build.ts @@ -36,7 +36,7 @@ export default (async (...[File, Option]: Parameters) => { Configuration, await ( await import("../Function/File.js") - ).default(Option?.ESBuild) + ).default(Option.ESBuild) ) : Configuration ); @@ -52,7 +52,7 @@ export default (async (...[File, Option]: Parameters) => { ); if (Option?.TypeScript) { - Exec(`tsc -p ${Option?.TypeScript}`); + Exec(`tsc -p ${Option.TypeScript}`); } else { Exec("tsc"); } diff --git a/Target/Function/Build.js b/Target/Function/Build.js index 7c035e63..e4a5e8af 100644 --- a/Target/Function/Build.js +++ b/Target/Function/Build.js @@ -1 +1 @@ -var u=async(...[n,e])=>{n.forEach(async t=>(await(await import("fast-glob")).default(t.replaceAll("'","").replaceAll('"',""))).forEach(l=>o.push(l))),o.reverse();const i=p((await import("../Object/ESBuild.js")).default,{entryPoints:Object.fromEntries(o.map(t=>[t.replace("Source/","").split(".").slice(0,-1).join("."),t]))}),{metafile:r}=await(await import("esbuild")).build(e?.ESBuild?p(i,await(await import("../Function/File.js")).default(e?.ESBuild)):i);console.log(r?await(await import("esbuild")).analyzeMetafile(r,{verbose:!0}):{}),e?.TypeScript?a(`tsc -p ${e?.TypeScript}`):a("tsc"),a(`typedoc --commentStyle all --gitRevision main --customCss ${s(`${c}/../Sheet/TypeDoc.css`)} --includeVersion --out ./Documentation --plugin typedoc-plugin-remove-references --plugin typedoc-plugin-rename-defaults --plugin typedoc-plugin-mdn-links --plugin typedoc-plugin-zod --plugin typedoc-plugin-merge-modules --entryPointStrategy expand --mergeModulesRenameDefaults --mergeModulesMergeMode module --entryPoints ${Object.values(i.entryPoints).join(" --entryPoints ")}`)};const{default:a}=await import("../Function/Exec.js"),{deepmerge:p}=await import("deepmerge-ts"),{resolve:s}=await import("path"),o=[],c=(await import("url")).fileURLToPath((await import("path")).dirname(import.meta.url));export{c as Current,a as Exec,o as Pipe,p as deepmerge,u as default,s as resolve}; +var u=async(...[n,e])=>{n.forEach(async t=>(await(await import("fast-glob")).default(t.replaceAll("'","").replaceAll('"',""))).forEach(l=>o.push(l))),o.reverse();const i=p((await import("../Object/ESBuild.js")).default,{entryPoints:Object.fromEntries(o.map(t=>[t.replace("Source/","").split(".").slice(0,-1).join("."),t]))}),{metafile:r}=await(await import("esbuild")).build(e?.ESBuild?p(i,await(await import("../Function/File.js")).default(e.ESBuild)):i);console.log(r?await(await import("esbuild")).analyzeMetafile(r,{verbose:!0}):{}),e?.TypeScript?a(`tsc -p ${e.TypeScript}`):a("tsc"),a(`typedoc --commentStyle all --gitRevision main --customCss ${s(`${c}/../Sheet/TypeDoc.css`)} --includeVersion --out ./Documentation --plugin typedoc-plugin-remove-references --plugin typedoc-plugin-rename-defaults --plugin typedoc-plugin-mdn-links --plugin typedoc-plugin-zod --plugin typedoc-plugin-merge-modules --entryPointStrategy expand --mergeModulesRenameDefaults --mergeModulesMergeMode module --entryPoints ${Object.values(i.entryPoints).join(" --entryPoints ")}`)};const{default:a}=await import("../Function/Exec.js"),{deepmerge:p}=await import("deepmerge-ts"),{resolve:s}=await import("path"),o=[],c=(await import("url")).fileURLToPath((await import("path")).dirname(import.meta.url));export{c as Current,a as Exec,o as Pipe,p as deepmerge,u as default,s as resolve};