From c46a1607411532eac0f6a45ab6bacf4472b9fcc7 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Tue, 19 Sep 2023 20:50:46 +0300 Subject: [PATCH] squash! --- Source/Bin.ts | 7 ++++--- Source/Export.ts | 3 --- Target/Bin.d.ts | 2 +- Target/Bin.js | 2 +- Target/Index.d.ts | 1 - Target/Index.js | 1 - package.json | 2 +- 7 files changed, 7 insertions(+), 11 deletions(-) delete mode 100644 Source/Export.ts delete mode 100644 Target/Index.d.ts delete mode 100644 Target/Index.js diff --git a/Source/Bin.ts b/Source/Bin.ts index 768f6343..27ab3226 100644 --- a/Source/Bin.ts +++ b/Source/Bin.ts @@ -1,8 +1,9 @@ #!/usr/bin/env node +import Build from "./Command/Build.js"; +import _JSON from "./Library/JSON.js"; + import { Command } from "commander"; -import Build from "./Command/Build.ts"; -import _JSON from "./Library/JSON.ts"; try { new Command() @@ -13,7 +14,7 @@ try { .option("-es, --ESBuild ", "esbuild configuration file") .option("-ts, --TypeScript ", "TypeScript configuration file") .action(Build) - .parse(); + .parse(); } catch (_Error) { console.log(_Error); } diff --git a/Source/Export.ts b/Source/Export.ts deleted file mode 100644 index 0f77b057..00000000 --- a/Source/Export.ts +++ /dev/null @@ -1,3 +0,0 @@ -export { default as Build } from "./Command/Build.ts"; -export { default as ESBuild } from "./Configuration/ESBuild.ts"; - diff --git a/Target/Bin.d.ts b/Target/Bin.d.ts index 87be97ad..b7988016 100644 --- a/Target/Bin.d.ts +++ b/Target/Bin.d.ts @@ -1,2 +1,2 @@ #!/usr/bin/env node -import "./Index.js"; +export {}; diff --git a/Target/Bin.js b/Target/Bin.js index e6efb466..c6bfec9b 100644 --- a/Target/Bin.js +++ b/Target/Bin.js @@ -1,2 +1,2 @@ #!/usr/bin/env node -import"./Index.js"; +import o from"./Command/Build.js";import e from"./Library/JSON.js";import{Command as r}from"commander";try{new r().name("TypeScriptESBuild").version((await e("../package.json",import.meta.url))?.version).description("Builds files").argument("","Files to build").option("-es, --ESBuild ","esbuild configuration file").option("-ts, --TypeScript ","TypeScript configuration file").action(o).parse()}catch(i){console.log(i)} diff --git a/Target/Index.d.ts b/Target/Index.d.ts deleted file mode 100644 index cb0ff5c3..00000000 --- a/Target/Index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/Target/Index.js b/Target/Index.js deleted file mode 100644 index ccffe2f6..00000000 --- a/Target/Index.js +++ /dev/null @@ -1 +0,0 @@ -import{Command as o}from"commander";import e from"./Command/Build.js";import r from"./Library/JSON.js";try{new o().name("TypeScriptESBuild").version((await r("../package.json",import.meta.url))?.version).description("Builds files").argument("","Files to build").option("-es, --ESBuild ","esbuild configuration file").option("-ts, --TypeScript ","TypeScript configuration file").action(e).parse()}catch(i){console.log(i)} diff --git a/package.json b/package.json index 6e4724d1..7f56c3d7 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "TypeScriptESBuild": "Target/Bin.js" }, "scripts": { - "prepublishOnly": "node --no-warnings --loader ts-node/esm Source/Index.ts 'Source/**/*.ts'" + "prepublishOnly": "node --no-warnings --loader ts-node/esm Source/Bin.ts 'Source/**/*.ts'" }, "dependencies": { "@types/node": "20.6.2",