diff --git a/CHANGELOG.md b/CHANGELOG.md index e7fbebf5..d27b1094 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.0.4 + +- Cleanup + ## 0.0.3 - Cleanup diff --git a/Source/Class/Build.ts b/Source/Class/Build.ts index 4143aa27..790a4129 100644 --- a/Source/Class/Build.ts +++ b/Source/Class/Build.ts @@ -10,6 +10,6 @@ export default new (await import("commander")).Command() .description("🌀 Build.") .argument("", "File.") .option("-ES, --ESBuild ", "ESBuild.") - .option("-TS, --TypeScript ", "TypeScript.") + .option("-TS, --TypeScript ", "TypeScript.", "tsconfig.json") .action((await import("../Function/Build.js")).default) .parse(); diff --git a/Source/Function/Build.ts b/Source/Function/Build.ts index fe2192ba..1daa6d61 100644 --- a/Source/Function/Build.ts +++ b/Source/Function/Build.ts @@ -25,6 +25,7 @@ export default (async (...[File, Option]: Parameters) => { File, ]) ), + tsconfig: Option?.TypeScript ?? "tsconfig.json", } ); @@ -52,8 +53,8 @@ export default (async (...[File, Option]: Parameters) => { ) ); - Exec(`tsc -p ${Option?.TypeScript ?? "tsconfig.json"}`); - Exec(`tsc-alias -p ${Option?.TypeScript ?? "tsconfig.json"}`); + Exec(`tsc -p ${Configuration.tsconfig}`); + Exec(`tsc-alias -p ${Configuration.tsconfig}`); }) satisfies Type as Type; import type Type from "../Interface/Build.js"; diff --git a/Target/Class/Build.js b/Target/Class/Build.js index aa30342c..0b8cefa5 100644 --- a/Target/Class/Build.js +++ b/Target/Class/Build.js @@ -1,2 +1,2 @@ #!/usr/bin/env node -var i=new(await import("commander")).Command().name("Build").version("0.0.3").description("\u{1F300}\u2000Build.").argument("","File.").option("-ES, --ESBuild ","ESBuild.").option("-TS, --TypeScript ","TypeScript.").action((await import("../Function/Build.js")).default).parse();export{i as default}; +var i=new(await import("commander")).Command().name("Build").version("0.0.4").description("\u{1F300}\u2000Build.").argument("","File.").option("-ES, --ESBuild ","ESBuild.").option("-TS, --TypeScript ","TypeScript.","tsconfig.json").action((await import("../Function/Build.js")).default).parse();export{i as default}; diff --git a/Target/Function/Build.js b/Target/Function/Build.js index 715cf0cf..2743ac6c 100644 --- a/Target/Function/Build.js +++ b/Target/Function/Build.js @@ -1 +1 @@ -var l=async(...[p,t])=>{for(const e of p)for(const s of await(await import("fast-glob")).default(e.replaceAll("'","").replaceAll('"',"")))a.push(s);a.reverse();const i=o((await import("../Variable/ESBuild.js")).default,{entryPoints:Object.fromEntries(a.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?o(i,await(await import("../Function/File.js")).default(t.ESBuild)):i))?.metafile??"",{verbose:!0})),r(`tsc -p ${t?.TypeScript??"tsconfig.json"}`),r(`tsc-alias -p ${t?.TypeScript??"tsconfig.json"}`)};const{default:r}=await import("../Function/Exec.js"),{default:o}=await import("../Function/Merge.js"),{resolve:c}=await import("path"),a=[],n=(await import("url")).fileURLToPath((await import("path")).dirname(import.meta.url));export{n as Current,r as Exec,o as Merge,a as Pipe,l as default,c as resolve}; +var l=async(...[s,a])=>{for(const e of s)for(const p of await(await import("fast-glob")).default(e.replaceAll("'","").replaceAll('"',"")))i.push(p);i.reverse();const t=r((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?r(t,await(await import("../Function/File.js")).default(a.ESBuild)):t))?.metafile??"",{verbose:!0})),o(`tsc -p ${t.tsconfig}`),o(`tsc-alias -p ${t.tsconfig}`)};const{default:o}=await import("../Function/Exec.js"),{default:r}=await import("../Function/Merge.js"),{resolve:c}=await import("path"),i=[],n=(await import("url")).fileURLToPath((await import("path")).dirname(import.meta.url));export{n as Current,o as Exec,r as Merge,i as Pipe,l as default,c as resolve}; diff --git a/package.json b/package.json index 8b37dff6..4a8ab6de 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@playform/build", - "version": "0.0.3", + "version": "0.0.4", "private": false, "description": "🌀 Build.", "keywords": [