Skip to content

Commit

Permalink
squash!
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaRHristov committed Sep 19, 2023
1 parent fd1430e commit 66c9715
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
18 changes: 17 additions & 1 deletion Source/Bin.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
#!/usr/bin/env node

import "./Index.js";
import { Command } from "commander";
import Build from "./Command/Build.ts";
import _JSON from "./Library/JSON.ts";

try {
new Command()
.name("TypeScriptESBuild")
.version((await _JSON("../package.json", import.meta.url))?.version)
.description("Builds files")
.argument("<Files...>", "Files to build")
.option("-es, --ESBuild <File>", "esbuild configuration file")
.option("-ts, --TypeScript <File>", "TypeScript configuration file")
.action(Build)
.parse();
} catch (_Error) {
console.log(_Error);
}
3 changes: 3 additions & 0 deletions Source/Export.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export { default as Build } from "./Command/Build.ts";
export { default as ESBuild } from "./Configuration/ESBuild.ts";

17 changes: 0 additions & 17 deletions Source/Index.ts

This file was deleted.

2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
"url": "https://nikolahristov.tech"
},
"type": "module",
"main": "./Target/Index.js",
"types": "./Target/Index.d.ts",
"bin": {
"TypeScriptESBuild": "Target/Bin.js"
},
Expand Down

0 comments on commit 66c9715

Please sign in to comment.