From fedf39bba5b5db167d2f26fd7916bb7b9e39adda Mon Sep 17 00:00:00 2001 From: "Nikola R. Hristov" Date: Wed, 10 Apr 2024 21:39:05 +0300 Subject: [PATCH] squash! Signed-off-by: Nikola R. Hristov --- Source/Function/Build.ts | 6 +++--- Target/Function/Build.d.ts | 1 - Target/Function/Build.js | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Source/Function/Build.ts b/Source/Function/Build.ts index 5a757eba..13622409 100644 --- a/Source/Function/Build.ts +++ b/Source/Function/Build.ts @@ -55,9 +55,9 @@ export default (async (...[File, Option]: Parameters) => { Exec(`tsc -p ${Configuration.tsconfig}`); Exec(`tsc-alias -f -p ${Configuration.tsconfig}`); - Exec( - `Resolve --verbose -p ${Configuration.tsconfig} --ext js mjs cjs d.ts d.mts d.cts` - ); + // Exec( + // `Resolve --verbose -p ${Configuration.tsconfig} --ext js mjs cjs d.ts d.mts d.cts` + // ); }) satisfies Interface as Interface; import type Interface from "@Interface/Build.js"; diff --git a/Target/Function/Build.d.ts b/Target/Function/Build.d.ts index d333f4d8..91db76f9 100644 --- a/Target/Function/Build.d.ts +++ b/Target/Function/Build.d.ts @@ -7,6 +7,5 @@ export default _default; import type Interface from "@Interface/Build.js"; export declare const Exec: import("../Interface/Exec.js").default; export declare const Merge: import("../Interface/Merge.js").default; -export declare const resolve: (...paths: string[]) => string; export declare const Pipe: string[]; export declare const Current: string; diff --git a/Target/Function/Build.js b/Target/Function/Build.js index 89c962b3..dd0bc7cc 100644 --- a/Target/Function/Build.js +++ b/Target/Function/Build.js @@ -1 +1 @@ -var l=async(...[s,a])=>{for(const e of s)for(const c of await(await import("fast-glob")).default(e.replaceAll("'","").replaceAll('"',"")))r.push(c);r.reverse();const t=o((await import("../Variable/ESBuild.js")).default,{entryPoints:Object.fromEntries(r.map(e=>[e.replace("Source/","").split(".").slice(0,-1).join("."),e])),tsconfig:a?.TypeScript??"tsconfig.json"});console.log(await(await import("esbuild")).analyzeMetafile((await(await import("esbuild")).build(a?.ESBuild?o(t,await(await import("./File.js")).default(a.ESBuild)):t))?.metafile??"",{verbose:!0})),i(`tsc -p ${t.tsconfig}`),i(`tsc-alias -p ${t.tsconfig}`),i(`resolve-tspaths --verbose -p ${t.tsconfig} --ext js mjs cjs d.ts d.mts d.cts ts`)};const{default:i}=await import("../Function/Exec.js"),{default:o}=await import("../Function/Merge.js"),{resolve:p}=await import("path"),r=[],n=(await import("url")).fileURLToPath((await import("path")).dirname(import.meta.url));export{n as Current,i as Exec,o as Merge,r as Pipe,l as default,p as resolve}; +var l=async(...[s,a])=>{for(const e of s)for(const c of await(await import("fast-glob")).default(e.replaceAll("'","").replaceAll('"',"")))i.push(c);i.reverse();const t=o((await import("../Variable/ESBuild.js")).default,{entryPoints:Object.fromEntries(i.map(e=>[e.replace("Source/","").split(".").slice(0,-1).join("."),e])),tsconfig:a?.TypeScript??"tsconfig.json"});console.log(await(await import("esbuild")).analyzeMetafile((await(await import("esbuild")).build(a?.ESBuild?o(t,await(await import("./File.js")).default(a.ESBuild)):t))?.metafile??"",{verbose:!0})),r(`tsc -p ${t.tsconfig}`),r(`tsc-alias -f -p ${t.tsconfig}`)};const{default:r}=await import("../Function/Exec.js"),{default:o}=await import("../Function/Merge.js"),i=[],f=(await import("url")).fileURLToPath((await import("path")).dirname(import.meta.url));export{f as Current,r as Exec,o as Merge,i as Pipe,l as default};